summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Kamat <jaygkamat@gmail.com>2018-09-01 13:20:32 -0700
committerJay Kamat <jaygkamat@gmail.com>2018-09-01 13:20:43 -0700
commitd885df78c6f931abf3259343aaaa897e16c8cba1 (patch)
tree4d4e90405d784e8134ed368212626848647d7bb1
parent5fefc65c306cf9ec492e7b422d6bb4842385afbc (diff)
downloadblessings-d885df78c6f931abf3259343aaaa897e16c8cba1.tar.gz
Explicitly catch curses.error
-rw-r--r--blessings/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/blessings/__init__.py b/blessings/__init__.py
index 3872b5f..fdceb09 100644
--- a/blessings/__init__.py
+++ b/blessings/__init__.py
@@ -97,7 +97,7 @@ class Terminal(object):
try:
setupterm(kind or environ.get('TERM', 'dumb'),
self._init_descriptor)
- except:
+ except curses.error:
# There was an error setting up the terminal, either curses is
# not supported or TERM is incorrectly set. Fall back to dumb.
self._does_styling = False