mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-02 18:44:51 +00:00
fix
This commit is contained in:
parent
dcfb7e949a
commit
1ba43806d5
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
Loading…
Reference in a new issue