mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 12:24:51 +00:00
Debug if something wrong
This commit is contained in:
parent
a60a7b4200
commit
965bc2bf5f
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ async def handle_error(
|
||||||
f_errname = f"crash_{tgl_now.strftime('%d %B %Y')}.txt"
|
f_errname = f"crash_{tgl_now.strftime('%d %B %Y')}.txt"
|
||||||
LOGGER.error(traceback.format_exc())
|
LOGGER.error(traceback.format_exc())
|
||||||
with open(f_errname, "w+", encoding="utf-8") as log:
|
with open(f_errname, "w+", encoding="utf-8") as log:
|
||||||
log.write(traceback.format_exc())
|
log.write(f"✍️ message: {m.text or m.caption}\n\n{traceback.format_exc()}")
|
||||||
log.close()
|
log.close()
|
||||||
if isinstance(m, pyrogram.types.Message):
|
if isinstance(m, pyrogram.types.Message):
|
||||||
with contextlib.suppress(Exception):
|
with contextlib.suppress(Exception):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue