summaryrefslogtreecommitdiff
path: root/src/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.py')
-rw-r--r--src/common.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/common.py b/src/common.py
index 9c7d31a3..d5851bed 100644
--- a/src/common.py
+++ b/src/common.py
@@ -33,13 +33,13 @@
"""
various useful functions
"""
+
import base64
import os
import mimetypes
import hashlib
import subprocess
import curses
-import traceback
import sys
import select
import errno
@@ -54,16 +54,6 @@ def debug(string):
fdes.write(string)
fdes.close()
-def exception_handler(type_, value, trace):
- """
- on any traceback: exit ncurses and print the traceback
- then exit the program
- """
- curses.endwin()
- curses.echo()
- traceback.print_exception(type_, value, trace, None, sys.stderr)
- sys.exit(2)
-
def get_base64_from_file(path):
"""
Convert the content of a file to base64