Cleaner error message

This commit is contained in:
Dan 2021-04-15 12:17:25 +02:00
parent add492c1be
commit c5624c639b

View File

@ -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)