summary refs log tree commit diff stats
path: root/doc/tools
diff options
context:
space:
mode:
authorstepshal <nessento@openmailbox.org>2016-06-22 00:01:38 +0700
committerstepshal <nessento@openmailbox.org>2016-06-22 00:01:38 +0700
commitbedfed3db77ecaafdb86e9e4847c7bb6ddc2563d (patch)
tree274a6e10436c085ac8421b53d7930761b6a08f60 /doc/tools
parent5348e120aa6d39604b2426577f84669b9ce0aa24 (diff)
downloadranger-bedfed3db77ecaafdb86e9e4847c7bb6ddc2563d.tar.gz
Use 'except Exception:' instead of 'except:'
Diffstat (limited to 'doc/tools')
-rwxr-xr-xdoc/tools/print_colors.py4
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)