diff --git a/cogs/utils/checks.py b/cogs/utils/checks.py index 69f5c0a..90339b8 100644 --- a/cogs/utils/checks.py +++ b/cogs/utils/checks.py @@ -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 diff --git a/cogs/utils/config.py b/cogs/utils/config.py index 4978dc4..1c08de5 100644 --- a/cogs/utils/config.py +++ b/cogs/utils/config.py @@ -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