mirror of
https://github.com/catspace-dev/unicheckbot.git
synced 2024-11-25 15:23:43 +03:00
fix #15
This commit is contained in:
parent
3cabd5e732
commit
1e62f24748
|
@ -62,7 +62,7 @@ async def send_api_request(client: AsyncClient, endpoint: str, data: dict, node:
|
||||||
f"{node.address}/{endpoint}", params=data
|
f"{node.address}/{endpoint}", params=data
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Node {node.address} got Error. Full exception: {e}")
|
logger.error(f"Node {node.address} got Error. Data: {data}. Endpoint: {endpoint}. Full exception: {e}")
|
||||||
result = Response(500)
|
result = Response(500)
|
||||||
await send_message_to_admins(f"Node {node.address} got error {e}. Full exception: ```{format_exc()}```")
|
await send_message_to_admins(f"Node {node.address} got error {e}. Full exception: ```{format_exc()}```")
|
||||||
await push_api_request_status(
|
await push_api_request_status(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user