Commit cd7ec5f7 authored by AUTOMATIC's avatar AUTOMATIC

lint

parent 7393c1f9
......@@ -88,9 +88,8 @@ def format_traceback(tb):
def get_exceptions():
try:
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:
return str(e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment