aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/sysinfo.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/sysinfo.py b/modules/sysinfo.py
index 00f684f6..f630c58b 100644
--- a/modules/sysinfo.py
+++ b/modules/sysinfo.py
@@ -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)