Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

fix: pass error in extension_error handler #612

Merged
merged 1 commit into from
Aug 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion naff/models/naff/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async def __call__(self, context: "Context", *args, **kwargs) -> None:
if self.error_callback:
await self.error_callback(e, context, *args, **kwargs)
elif self.extension and self.extension.extension_error:
await self.extension.extension_error(context, *args, **kwargs)
await self.extension.extension_error(e, context, *args, **kwargs)
else:
raise
finally:
Expand Down