Commit cd7ec5f7 authored by AUTOMATIC's avatar AUTOMATIC
Browse files

lint

parent 7393c1f9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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)