commit f410225dc2396dcdeb1402c62853728275c80554
parent 85505c1d8eee7f5aa1d3a1f4dba766e52bddcdf1
Author: ThomasV <thomasv@gitorious>
Date: Sat, 21 Jun 2014 21:38:42 +0200
print traceback in waiting dialog
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gui/qt/util.py b/gui/qt/util.py
@@ -3,7 +3,8 @@ from PyQt4.QtGui import *
from PyQt4.QtCore import *
import os.path
import time
-
+import traceback
+import sys
import threading
class WaitingDialog(QThread):
@@ -25,6 +26,7 @@ class WaitingDialog(QThread):
try:
self.result = self.run_task()
except Exception as e:
+ traceback.print_exc(file=sys.stdout)
self.error = str(e)
self.d.emit(SIGNAL('done'))