mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Update dispatcher.py
This commit is contained in:
parent
3f0a355f7e
commit
23fd39e2c8
1 changed files with 9 additions and 7 deletions
|
|
@ -143,13 +143,15 @@ class Dispatcher:
|
|||
if handler.check(update):
|
||||
args = (update,)
|
||||
|
||||
if args is not None:
|
||||
try:
|
||||
handler.callback(self.client, *args)
|
||||
except Exception as e:
|
||||
log.error(e, exc_info=True)
|
||||
finally:
|
||||
break
|
||||
if args is None:
|
||||
continue
|
||||
|
||||
try:
|
||||
handler.callback(self.client, *args)
|
||||
except Exception as e:
|
||||
log.error(e, exc_info=True)
|
||||
finally:
|
||||
break
|
||||
except Exception as e:
|
||||
log.error(e, exc_info=True)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue