?
This commit is contained in:
parent
e1237acf50
commit
61a512979a
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ async def makemsgchain(msg, msgtype):
|
|||
try:
|
||||
msgchain = msgchain.plusWith(
|
||||
[Image.fromLocalFile(filepath=abspath(img.group(1)), method=mth)])
|
||||
except (TimeoutError, asyncio.TimeoutError):
|
||||
except asyncio.exceptions.TimeoutError:
|
||||
msgchain = msgchain.plusWith(
|
||||
[Plain('\n上传超时,发送失败。')])
|
||||
except Exception:
|
||||
|
@ -107,7 +107,7 @@ async def makemsgchain(msg, msgtype):
|
|||
try:
|
||||
d1 = await findimage(d)
|
||||
msgchain = msgchain.plusWith([Image.fromNetworkAddress(url=d1, method=mth)])
|
||||
except (TimeoutError, asyncio.TimeoutError):
|
||||
except asyncio.exceptions.TimeoutError:
|
||||
msgchain = msgchain.plusWith(
|
||||
[Plain('\n上传超时,发送失败。')])
|
||||
except Exception:
|
||||
|
|
Reference in a new issue