Added a possible exception to catch
This commit is contained in:
parent
f91e992d25
commit
78187197b3
|
@ -84,7 +84,7 @@ def custom_perms(**perms):
|
|||
try:
|
||||
required_perm_value = server_settings['permissions'][ctx.command.qualified_name]
|
||||
required_perm = discord.Permissions(required_perm_value)
|
||||
except (TypeError, IndexError):
|
||||
except (TypeError, IndexError, ValueError):
|
||||
pass
|
||||
|
||||
# Now just check if the person running the command has these permissions
|
||||
|
|
|
@ -121,7 +121,7 @@ def command_prefix(bot, message):
|
|||
try:
|
||||
prefix = cache['server_settings'].values[message.guild.id]['prefix']
|
||||
return prefix or default_prefix
|
||||
except (KeyError, TypeError, IndexError, AttributeError):
|
||||
except (KeyError, TypeError, IndexError, AttributeError, ValueError):
|
||||
return default_prefix
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue