Update dev.py

This commit is contained in:
yasirarism 2023-03-21 07:17:06 +07:00 committed by GitHub
parent e553710c9d
commit 1bb6943ffb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()