summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blessings/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/blessings/__init__.py b/blessings/__init__.py
index fdceb09..d9305e6 100644
--- a/blessings/__init__.py
+++ b/blessings/__init__.py
@@ -95,7 +95,7 @@ class Terminal(object):
# send them to stdout as a fallback, since they have to go
# somewhere.
try:
- setupterm(kind or environ.get('TERM', 'dumb'),
+ setupterm(kind or environ.get('TERM', 'dumb') or 'dumb',
self._init_descriptor)
except curses.error:
# There was an error setting up the terminal, either curses is