This commit is contained in:
AUTOMATIC 2023-06-03 14:00:37 +03:00
parent 7393c1f99c
commit cd7ec5f728

View File

@ -88,9 +88,8 @@ def format_traceback(tb):
def get_exceptions(): def get_exceptions():
try: try:
from modules import errors from modules import errors
items = [x for x in reversed(errors.exception_records)]
return [{"exception": str(e), "traceback": format_traceback(tb)} for e, tb in items] return [{"exception": str(e), "traceback": format_traceback(tb)} for e, tb in reversed(errors.exception_records)]
except Exception as e: except Exception as e:
return str(e) return str(e)