mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
parent
be59c36ed3
commit
516a2e7435
|
@ -285,7 +285,7 @@ class UpdateMethods:
|
||||||
self._log[__name__].debug('Getting difference for account updates')
|
self._log[__name__].debug('Getting difference for account updates')
|
||||||
try:
|
try:
|
||||||
diff = await self(get_diff)
|
diff = await self(get_diff)
|
||||||
except (errors.ServerError, ValueError) as e:
|
except (errors.ServerError, errors.TimeoutError, ValueError) as e:
|
||||||
# Telegram is having issues
|
# Telegram is having issues
|
||||||
self._log[__name__].info('Cannot get difference since Telegram is having issues: %s', type(e).__name__)
|
self._log[__name__].info('Cannot get difference since Telegram is having issues: %s', type(e).__name__)
|
||||||
self._message_box.end_difference()
|
self._message_box.end_difference()
|
||||||
|
@ -338,6 +338,7 @@ class UpdateMethods:
|
||||||
errors.PersistentTimestampOutdatedError,
|
errors.PersistentTimestampOutdatedError,
|
||||||
errors.PersistentTimestampInvalidError,
|
errors.PersistentTimestampInvalidError,
|
||||||
errors.ServerError,
|
errors.ServerError,
|
||||||
|
errors.TimeoutError,
|
||||||
ValueError
|
ValueError
|
||||||
) as e:
|
) as e:
|
||||||
# According to Telegram's docs:
|
# According to Telegram's docs:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user