Cleaner error message
This commit is contained in:
parent
add492c1be
commit
c5624c639b
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user