mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-22 10:54:15 +03:00
Auto-retry on interdc call (rich) error
This commit is contained in:
parent
cb6ffeaabd
commit
241c6c4ac8
|
@ -79,7 +79,8 @@ class UserMethods:
|
||||||
self._entity_cache.add(result)
|
self._entity_cache.add(result)
|
||||||
return result
|
return result
|
||||||
except (errors.ServerError, errors.RpcCallFailError,
|
except (errors.ServerError, errors.RpcCallFailError,
|
||||||
errors.RpcMcgetFailError) as e:
|
errors.RpcMcgetFailError, errors.InterdcCallErrorError,
|
||||||
|
errors.InterdcCallRichErrorError) as e:
|
||||||
self._log[__name__].warning(
|
self._log[__name__].warning(
|
||||||
'Telegram is having internal issues %s: %s',
|
'Telegram is having internal issues %s: %s',
|
||||||
e.__class__.__name__, e)
|
e.__class__.__name__, e)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user