mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-16 03:55:26 +00:00
🎨 Update TimeoutException Log
This commit is contained in:
parent
7d46cfdbec
commit
2a115d0333
@ -213,7 +213,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
|
||||||
|
Loading…
Reference in New Issue
Block a user