mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-30 13:57:54 +00:00
Update dispatcher.py
This commit is contained in:
@@ -143,13 +143,15 @@ class Dispatcher:
|
|||||||
if handler.check(update):
|
if handler.check(update):
|
||||||
args = (update,)
|
args = (update,)
|
||||||
|
|
||||||
if args is not None:
|
if args is None:
|
||||||
try:
|
continue
|
||||||
handler.callback(self.client, *args)
|
|
||||||
except Exception as e:
|
try:
|
||||||
log.error(e, exc_info=True)
|
handler.callback(self.client, *args)
|
||||||
finally:
|
except Exception as e:
|
||||||
break
|
log.error(e, exc_info=True)
|
||||||
|
finally:
|
||||||
|
break
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.error(e, exc_info=True)
|
log.error(e, exc_info=True)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user