Skip to content

Commit

Permalink
fix: show error message
Browse files Browse the repository at this point in the history
  • Loading branch information
lss233 committed Apr 2, 2023
1 parent 661c81b commit 154ca87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platforms/onebot_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ async def _(event: Event):

node = MessageSegment.node_custom(event.self_id, "ChatGPT", answer)
nodes.append(node)
except:
pass
except Exception as e:
logger.error(e)

if len(nodes) == 0:
await bot.send(event, "没有查询到任何预设!")
Expand Down

0 comments on commit 154ca87

Please sign in to comment.