From 08c81a900c3301088659b9c08246239bf3dd2bea Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sun, 13 Jun 2010 18:58:39 +0000 Subject: enable the tracebacks --- src/common.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/common.py') 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 -- cgit v1.2.3