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