🎨 Update TimeoutException Log

This commit is contained in:
洛水居室 2023-08-21 12:06:27 +08:00
parent 5e814d5a68
commit c6e4ca4f30
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -218,7 +218,7 @@ class ErrorHandler(Plugin):
notice: Optional[str] = None notice: Optional[str] = None
if isinstance(exc, TimeoutException): if isinstance(exc, TimeoutException):
notice = self.ERROR_MSG_PREFIX + " 服务器熟啦 ~ 请稍后再试" 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: if notice:
self.create_notice_task(update, context, notice) self.create_notice_task(update, context, notice)
raise ApplicationHandlerStop raise ApplicationHandlerStop