summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-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 65625cb5..762ac3e3 100755
--- a/doc/tools/print_colors.py
+++ b/doc/tools/print_colors.py
@@ -15,14 +15,14 @@ def main(win):
         for color in range(-1, curses.COLORS):
             try:
                 curses.init_pair(color, color, 0)
-            except Exception:
+            except curses.error:
                 pass
             else:
                 win.addstr(str(color) + ' ', curses.color_pair(color) | attr)
     curses.start_color()
     try:
         curses.use_default_colors()
-    except Exception:
+    except curses.error:
         pass
     win.addstr("available colors: %d\n\n" % curses.COLORS)
     print_all_colors(0)