diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-06-03 14:00:37 +0300 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-06-03 14:00:37 +0300 |
commit | cd7ec5f728d4f83ff847d2f3f4a434d094db54eb (patch) | |
tree | 928672afc0fb554426884d241798014a845de232 | |
parent | 7393c1f99c9e33871e8b4aaad45f2675e7b410af (diff) |
lint
-rw-r--r-- | modules/sysinfo.py | 3 |
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)
|