diff options
author | stepshal <nessento@openmailbox.org> | 2016-06-22 00:01:38 +0700 |
---|---|---|
committer | stepshal <nessento@openmailbox.org> | 2016-06-22 00:01:38 +0700 |
commit | bedfed3db77ecaafdb86e9e4847c7bb6ddc2563d (patch) | |
tree | 274a6e10436c085ac8421b53d7930761b6a08f60 /doc | |
parent | 5348e120aa6d39604b2426577f84669b9ce0aa24 (diff) | |
download | ranger-bedfed3db77ecaafdb86e9e4847c7bb6ddc2563d.tar.gz |
Use 'except Exception:' instead of 'except:'
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/tools/print_colors.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |