Поправлен вывод ошибки
This commit is contained in:
parent
0dfe1d8b7e
commit
f51a3ca403
|
@ -33,7 +33,7 @@ class ApiExtractor:
|
||||||
try:
|
try:
|
||||||
return json.loads(await resp.text())
|
return json.loads(await resp.text())
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
logging.error(f'Получены неверные данные - {resp.text()}')
|
logging.error(f'Получены неверные данные - {await resp.text()}')
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
@backoff.on_exception(backoff.expo, (aiohttp.ClientResponseError, aiohttp.ClientConnectorError,
|
@backoff.on_exception(backoff.expo, (aiohttp.ClientResponseError, aiohttp.ClientConnectorError,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user