Indentation, formatting

This commit is contained in:
JosXa 2018-02-20 04:08:26 +01:00
parent 7b7fbc0d8b
commit 417947d520

View File

@ -15,7 +15,9 @@ from mimetypes import guess_type
from .crypto import CdnDecrypter
from .tl.custom import InputSizedFile
from .tl.functions.upload import (GetFileRequest, SaveBigFilePartRequest, SaveFilePartRequest)
from .tl.functions.upload import (
SaveBigFilePartRequest, SaveFilePartRequest, GetFileRequest
)
from .tl.types.upload import FileCdnRedirect
try:
@ -1778,13 +1780,7 @@ class TelegramClient(TelegramBareClient):
event = builder.build(update)
if event:
event._client = self
try:
callback(event)
except StopPropagation:
__log__.info("Event handler {0} stopped propagation of updates while processing {1}.".format(
callback.__name__,
update))
break
def add_event_handler(self, callback, event):
"""