diff --git a/pyrogram/session/session.py b/pyrogram/session/session.py index 686531e3..7727f72c 100644 --- a/pyrogram/session/session.py +++ b/pyrogram/session/session.py @@ -437,7 +437,7 @@ class Session: raise e from None (log.warning if retries < 2 else log.info)( - f'[{Session.MAX_RETRIES - retries + 1}] Retrying "{query}" due to {repr(e)}') + f'[{Session.MAX_RETRIES - retries + 1}] Retrying "{query}" due to {str(e) or repr(e)}') await asyncio.sleep(0.5)