diff --git a/GeoffreyBot/util.py b/GeoffreyBot/util.py index f4ed828..e034c33 100644 --- a/GeoffreyBot/util.py +++ b/GeoffreyBot/util.py @@ -36,7 +36,7 @@ async def run_command(ctx, base_url, api_token, request_type, command, errors=No if "error" in json: error_name = json["error"] - if error_name in errors: + if (errors is not None) and (error_name in errors): msg = errors[error_name] elif error_name in default_error_messages: msg = default_error_messages[error_name]