Handle invalidUserException when calling fokabot commands

This commit is contained in:
Giuseppe Guerra 2018-04-02 18:19:47 +02:00
parent 198bdb9997
commit 05694c5d87
1 changed files with 1 additions and 1 deletions

View File

@ -1097,7 +1097,7 @@ def multiplayer(fro, chan, message):
if requestedSubcommand not in subcommands:
raise exceptions.invalidArgumentsException("Invalid subcommand")
return subcommands[requestedSubcommand]()
except (exceptions.invalidArgumentsException, exceptions.userNotFoundException) as e:
except (exceptions.invalidArgumentsException, exceptions.userNotFoundException, exceptions.invalidUserException) as e:
return str(e)
except exceptions.wrongChannelException:
return "This command only works in multiplayer chat channels"