From 9d735d92a165b8439ec396b0f7b6ae1ca20e8ce1 Mon Sep 17 00:00:00 2001 From: tm-a-t Date: Sat, 20 Apr 2024 17:26:04 +0300 Subject: [PATCH] fix: empty result when exception --- tgpy/_core/eval_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgpy/_core/eval_message.py b/tgpy/_core/eval_message.py index 06b5120..5a44f4b 100644 --- a/tgpy/_core/eval_message.py +++ b/tgpy/_core/eval_message.py @@ -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: