From 1ba43806d5ada39230c755a0896a18cd6ff1cb19 Mon Sep 17 00:00:00 2001 From: yasirarism <55983182+yasirarism@users.noreply.github.com> Date: Tue, 4 Jul 2023 10:37:23 +0700 Subject: [PATCH] fix --- misskaty/core/misskaty_patch/utils/handler_error.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misskaty/core/misskaty_patch/utils/handler_error.py b/misskaty/core/misskaty_patch/utils/handler_error.py index 7cd647a9..6ea92778 100644 --- a/misskaty/core/misskaty_patch/utils/handler_error.py +++ b/misskaty/core/misskaty_patch/utils/handler_error.py @@ -71,7 +71,7 @@ async def handle_error( "An Internal Error Occurred while Processing your Command, the Logs have been sent to the Owners of this Bot. Sorry for Inconvenience" ) await m._client.send_document( - LOG_CHANNEL, crash_{tgl_now.strftime('%d %B %Y')}.txt, caption="Crash Report of this Bot\n{cap_day}" + LOG_CHANNEL, "crash_{tgl_now.strftime('%d %B %Y')}.txt", caption="Crash Report of this Bot\n{cap_day}" ) if isinstance(m, pyrogram.types.CallbackQuery): with contextlib.suppress(Exception): @@ -80,7 +80,7 @@ async def handle_error( "An Internal Error Occurred while Processing your Command, the Logs have been sent to the Owners of this Bot. Sorry for Inconvenience" ) await m.message._client.send_document( - LOG_CHANNEL, crash_{tgl_now.strftime('%d %B %Y')}.txt, caption="Crash Report of this Bot\n{cap_day}" + LOG_CHANNEL, "crash_{tgl_now.strftime('%d %B %Y')}.txt", caption="Crash Report of this Bot\n{cap_day}" ) - os.remove(crash_{tgl_now.strftime('%d %B %Y')}.txt) + os.remove("crash_{tgl_now.strftime('%d %B %Y')}.txt") return True \ No newline at end of file