From e1660d0dec2892b8f373f847e8b49a48b0facc11 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sat, 30 Jul 2022 10:31:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20hotfix:=20pgp=20error?= =?UTF-8?q?=20report?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagermaid/listener.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pagermaid/listener.py b/pagermaid/listener.py index 9223334..d6d33d2 100644 --- a/pagermaid/listener.py +++ b/pagermaid/listener.py @@ -200,8 +200,8 @@ def listener(**args): if Config.ERROR_REPORT: report = f"""# Generated: {strftime('%H:%M %d/%m/%Y', gmtime())}. \n# ChatID: {message.chat.id}. \n# UserID: {message.from_user.id if message.from_user else message.sender_chat.id}. \n# Message: \n-----BEGIN TARGET MESSAGE-----\n{message.text or message.caption}\n-----END TARGET MESSAGE-----\n# Traceback: \n-----BEGIN TRACEBACK-----\n{str(exc_format)}\n-----END TRACEBACK-----\n# Error: "{str(exc_info)}". \n""" - await attach_report(report, f"exception.{time()}.pagermaid", None, - "Error report generated.") + await attach_report(report, f"exception.{time()}.pgp.txt", None, + "PGP Error report generated.") if (message.chat.id, message.id) in read_context: del read_context[(message.chat.id, message.id)] if block_process: