🎨 Update TimeoutException Log

This commit is contained in:
洛水居室 2023-08-21 12:06:27 +08:00 committed by xtaodada
parent 7d46cfdbec
commit 2a115d0333
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -213,7 +213,7 @@ class ErrorHandler(Plugin):
notice: Optional[str] = None
if isinstance(exc, TimeoutException):
notice = self.ERROR_MSG_PREFIX + " 服务器熟啦 ~ 请稍后再试"
logger.warning("Httpx exception[%s]", str(exc))
logger.warning("Httpx [%s]\n%s[%s]", exc.__class__.__name__, exc.request.method, exc.request.url)
if notice:
self.create_notice_task(update, context, notice)
raise ApplicationHandlerStop