summaryrefslogtreecommitdiff
path: root/src/common.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-13 18:58:39 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-13 18:58:39 +0000
commit08c81a900c3301088659b9c08246239bf3dd2bea (patch)
tree1410b143c326bfbb8a72de8c3aab962bfeaa2d7d /src/common.py
parent9c492501f4406e74ba989e5519f40d723f52873d (diff)
downloadpoezio-08c81a900c3301088659b9c08246239bf3dd2bea.tar.gz
poezio-08c81a900c3301088659b9c08246239bf3dd2bea.tar.bz2
poezio-08c81a900c3301088659b9c08246239bf3dd2bea.tar.xz
poezio-08c81a900c3301088659b9c08246239bf3dd2bea.zip
enable the tracebacks
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