diff options
-rw-r--r-- | blessings/__init__.py | 2 |
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 |