diff options
-rw-r--r-- | iotop/ui.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/iotop/ui.py b/iotop/ui.py index c28f98e..9eb60c8 100644 --- a/iotop/ui.py +++ b/iotop/ui.py @@ -618,6 +618,9 @@ def run_iotop(options): return run_iotop_window(None, options) else: return curses.wrapper(run_iotop_window, options) + except curses.error as e: + print('iotop interface error:', e, file=sys.stderr) + sys.exit(1) except OSError as e: if e.errno == errno.EPERM: print(e, file=sys.stderr) |