From bedfed3db77ecaafdb86e9e4847c7bb6ddc2563d Mon Sep 17 00:00:00 2001 From: stepshal Date: Wed, 22 Jun 2016 00:01:38 +0700 Subject: Use 'except Exception:' instead of 'except:' --- doc/tools/print_colors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/tools/print_colors.py b/doc/tools/print_colors.py index feae8e35..8cc944ed 100755 --- a/doc/tools/print_colors.py +++ b/doc/tools/print_colors.py @@ -14,14 +14,14 @@ def main(win): for c in range(-1, curses.COLORS): try: init_pair(c, c, 0) - except: + except Exception: pass else: win.addstr(str(c) + ' ', color_pair(c) | attr) start_color() try: use_default_colors() - except: + except Exception: pass win.addstr("available colors: %d\n\n" % curses.COLORS) print_all_colors(0) -- cgit 1.4.1-2-gfad0