Auto-retry on interdc call (rich) error

This commit is contained in:
Lonami Exo 2020-08-03 12:35:25 +02:00
parent cb6ffeaabd
commit 241c6c4ac8

View File

@ -79,7 +79,8 @@ class UserMethods:
self._entity_cache.add(result)
return result
except (errors.ServerError, errors.RpcCallFailError,
errors.RpcMcgetFailError) as e:
errors.RpcMcgetFailError, errors.InterdcCallErrorError,
errors.InterdcCallRichErrorError) as e:
self._log[__name__].warning(
'Telegram is having internal issues %s: %s',
e.__class__.__name__, e)