print traceback in waiting dialog
authorThomasV <thomasv@gitorious>
Sat, 21 Jun 2014 19:38:42 +0000 (21:38 +0200)
committerThomasV <thomasv@gitorious>
Sat, 21 Jun 2014 19:38:42 +0000 (21:38 +0200)
gui/qt/util.py

index 9139136..94a0898 100644 (file)
@@ -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'))