Skip to content

Commit 4f794d6

Browse files
committed
Solved flake8 Errors
1 parent e035b69 commit 4f794d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/genicons.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import os.path
1010
from functools import reduce
1111
import sys
12+
import traceback
1213

1314
# Third-party
1415
import cairo
@@ -202,7 +203,7 @@ def main():
202203
except KeyboardInterrupt as e:
203204
print("INFO (130) Halted via KeyboardInterrupt.", file=sys.stderr)
204205
sys.exit(130)
205-
except:
206+
except Exception:
206207
print("ERROR (1) Unhandled exception:", file=sys.stderr)
207208
print(traceback.print_exc(), file=sys.stderr)
208209
sys.exit(1)

0 commit comments

Comments
 (0)