summaryrefslogtreecommitdiff
path: root/src/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.py')
-rw-r--r--src/common.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common.py b/src/common.py
index 063ad424..9c7d31a3 100644
--- a/src/common.py
+++ b/src/common.py
@@ -33,7 +33,6 @@
"""
various useful functions
"""
-
import base64
import os
import mimetypes
@@ -60,8 +59,8 @@ def exception_handler(type_, value, trace):
on any traceback: exit ncurses and print the traceback
then exit the program
"""
- curses.echo()
curses.endwin()
+ curses.echo()
traceback.print_exception(type_, value, trace, None, sys.stderr)
sys.exit(2)