summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/knotty.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/knotty.py')
-rw-r--r--bitbake/lib/bb/ui/knotty.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index b01daee573..858cacfe55 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -141,7 +141,11 @@ class TerminalFilter(object):
141 if not self.interactive: 141 if not self.interactive:
142 return 142 return
143 143
144 import curses 144 try:
145 import curses
146 except ImportError:
147 sys.exit("FATAL: The knotty ui could not load the required curses python module.")
148
145 import termios 149 import termios
146 self.curses = curses 150 self.curses = curses
147 self.termios = termios 151 self.termios = termios