mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 05:06:56 +08:00
🐛 fix fastapi forward reconnect error
This commit is contained in:
parent
59db66ef27
commit
3a0265b0f6
@ -440,6 +440,7 @@ class Driver(ReverseDriver, ForwardDriver):
|
|||||||
logger.opt(colors=True).error(
|
logger.opt(colors=True).error(
|
||||||
"<r><bg #f8bbd0>WebSocket connection closed by peer. "
|
"<r><bg #f8bbd0>WebSocket connection closed by peer. "
|
||||||
"Try to reconnect...</bg #f8bbd0></r>")
|
"Try to reconnect...</bg #f8bbd0></r>")
|
||||||
|
break
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.opt(colors=True, exception=e).error(
|
logger.opt(colors=True, exception=e).error(
|
||||||
f"<r><bg #f8bbd0>Error while connecting to {url}. "
|
f"<r><bg #f8bbd0>Error while connecting to {url}. "
|
||||||
|
Loading…
Reference in New Issue
Block a user