Skip to content

Commit

Permalink
fix: empty result when exception
Browse files Browse the repository at this point in the history
  • Loading branch information
tm-a-t committed Apr 20, 2024
1 parent 9879d61 commit 9d735d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tgpy/_core/eval_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def eval_message(code: str, message: Message) -> Message | None:
# return no message as it wasn't edited
return None
except Exception:
result = 'Error occurred'
result = None
output = ''
exc, full_exc = format_traceback()
else:
Expand Down

0 comments on commit 9d735d9

Please sign in to comment.