mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-06 05:00:23 +03:00
Forgot the actual try catch clause
This commit is contained in:
parent
417947d520
commit
2bd63f7887
|
@ -1780,7 +1780,11 @@ class TelegramClient(TelegramBareClient):
|
||||||
event = builder.build(update)
|
event = builder.build(update)
|
||||||
if event:
|
if event:
|
||||||
event._client = self
|
event._client = self
|
||||||
|
try:
|
||||||
callback(event)
|
callback(event)
|
||||||
|
except StopPropagation:
|
||||||
|
__log__.info("Event handler '{}' stopped chain of propagation for update {}.".format(
|
||||||
|
callback.__name__, type(update).__name__))
|
||||||
|
|
||||||
def add_event_handler(self, callback, event):
|
def add_event_handler(self, callback, event):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user