mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Update dev.py
This commit is contained in:
parent
e553710c9d
commit
1bb6943ffb
1 changed files with 5 additions and 1 deletions
|
|
@ -157,7 +157,11 @@ async def evaluation_cmd_t(_, m):
|
|||
try:
|
||||
await aexec(cmd, _, m)
|
||||
except Exception:
|
||||
exc = traceback.format_exc(limit=4)
|
||||
# exc = traceback.format_exc(limit=4)
|
||||
exc_type, exc_value, exc_tb = sys.exc_info()
|
||||
tb = traceback.TracebackException(exc_type, exc_value, exc_tb)
|
||||
exc = f"{exc_type} {exc_value} {exc_tb}\n\n{tb}"
|
||||
# print(''.join(tb.format_exception_only()))
|
||||
|
||||
stdout = redirected_output.getvalue()
|
||||
stderr = redirected_error.getvalue()
|
||||
|
|
|
|||
Loading…
Reference in a new issue