Skip to content

Commit

Permalink
'Refactored by Sourcery' (#792)
Browse files Browse the repository at this point in the history
Co-authored-by: Sourcery AI <>
  • Loading branch information
sourcery-ai[bot] authored and lss233 committed May 10, 2023
1 parent 718edcd commit 380810a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/platforms/onebot_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async def safe_send(event, resp: MessageChain, is_group):
try:
return await bot.send(event, MessageSegment.image(f"base64://{(await to_image(str(resp))).base64}"))
except Exception as e:
return await bot.send(event, "消息发送失败,可能是遇到风控。" + str(e))
return await bot.send(event, f"消息发送失败,可能是遇到风控。{str(e)}")


async def respond(event: aiocqhttp.Event, is_group: bool, chain: MessageChain = None, text: str = None,
Expand Down

0 comments on commit 380810a

Please sign in to comment.