Handle invalidUserException when calling fokabot commands
This commit is contained in:
parent
198bdb9997
commit
05694c5d87
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user