aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-06-03 14:00:37 +0300
committerAUTOMATIC <16777216c@gmail.com>2023-06-03 14:00:37 +0300
commitcd7ec5f728d4f83ff847d2f3f4a434d094db54eb (patch)
tree928672afc0fb554426884d241798014a845de232 /modules
parent7393c1f99c9e33871e8b4aaad45f2675e7b410af (diff)
lint
Diffstat (limited to 'modules')
-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)