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

Commit

Permalink
fix: Add missing await in client._on_error handler. (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
silasary authored Aug 1, 2022
1 parent 595a4c8 commit fcdfdfb
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit fcdfdfb

Please sign in to comment.