mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
Fix introduced potential TypeError with _get_command_error
This commit is contained in:
parent
a183a56dd9
commit
c41cadfa91
@ -498,7 +498,8 @@ def _get_command_error(
|
|||||||
else:
|
else:
|
||||||
errors = {key: ' '.join(x.get('message', '') for x in inner_errors)}
|
errors = {key: ' '.join(x.get('message', '') for x in inner_errors)}
|
||||||
|
|
||||||
messages.extend(f'{indentation} {k}: {v}' for k, v in errors.items())
|
if isinstance(errors, dict):
|
||||||
|
messages.extend(f'{indentation} {k}: {v}' for k, v in errors.items())
|
||||||
|
|
||||||
|
|
||||||
class CommandSyncFailure(AppCommandError, HTTPException):
|
class CommandSyncFailure(AppCommandError, HTTPException):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user