🐛 修复 block bot 后的报错问题 (#55)
This commit is contained in:
parent
52edcc8a73
commit
c9a5f218f1
@ -73,6 +73,7 @@ async def attach_report(plaintext, file_name, reply_id=None, caption=None):
|
||||
caption=caption
|
||||
)
|
||||
except:
|
||||
try:
|
||||
async with bot.conversation('PagerMaid_Modify_bot') as conversation:
|
||||
await conversation.send_message('/ping')
|
||||
await conversation.get_response()
|
||||
@ -83,6 +84,8 @@ async def attach_report(plaintext, file_name, reply_id=None, caption=None):
|
||||
reply_to=reply_id,
|
||||
caption=caption
|
||||
)
|
||||
except:
|
||||
pass
|
||||
remove(file_name)
|
||||
|
||||
async def obtain_message(context):
|
||||
|
Loading…
Reference in New Issue
Block a user