Visitar URL original
Error handlers by lrdcxdes · Pull Request #1240 · pyrogram/pyrogram · GitHub
Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update error_handler.py
  • Loading branch information
lrdcxdes authored Mar 22, 2023
commit fcc8dea2c07de3333f853f0a3290958d958a0724
2 changes: 1 addition & 1 deletion pyrogram/handlers/error_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ def __init__(self, callback: Callable, errors=None):
async def check(self, client: "pyrogram.Client", error: Exception):
return any(isinstance(error, e) for e in self.errors)

async def check_remove(self, error: Exception):
def check_remove(self, error: Exception):
return self.errors == error or any(isinstance(error, e) for e in self.errors)