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

fix: Add missing await in client._on_error handler. #579

Merged
merged 1 commit into from
Aug 1, 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/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def default_error_handler(source: str, error: BaseException) -> None:

@Listener.create()
async def _on_error(self, event: events.Error) -> None:
self.on_error(event.source, event.error, *event.args, **event.kwargs)
await self.on_error(event.source, event.error, *event.args, **event.kwargs)

async def on_error(self, source: str, error: Exception, *args, **kwargs) -> None:
"""
Expand Down