diff --git a/src/libprs500/gui2/main.py b/src/libprs500/gui2/main.py index fbbde1fe28..d967c6cb3c 100644 --- a/src/libprs500/gui2/main.py +++ b/src/libprs500/gui2/main.py @@ -646,9 +646,9 @@ class Main(MainWindow, Ui_MainWindow): ''' Handle exceptions in threaded jobs. ''' - print >>sys.stderr, 'Error in job:', description - print >>sys.stderr, exception - print >>sys.stderr, formatted_traceback + print >>sys.stderr, 'Error in job:', description.encode('utf8') + print >>sys.stderr, exception.encode('utf8') + print >>sys.stderr, formatted_traceback.encode('utf8') if not self.device_error_dialog.isVisible(): msg = u'

%s: '%(exception.__class__.__name__,) + unicode(str(exception), 'utf8', 'replace') + u'

' msg += u'

Failed to perform job: '+description @@ -659,10 +659,10 @@ class Main(MainWindow, Ui_MainWindow): self.device_error_dialog.show() def conversion_job_exception(self, id, description, exception, formatted_traceback, log): - print >>sys.stderr, 'Error in job:', description - print >>sys.stderr, log - print >>sys.stderr, exception - print >>sys.stderr, formatted_traceback + print >>sys.stderr, 'Error in job:', description.encode('utf8') + print >>sys.stderr, log.encode('utf8') + print >>sys.stderr, exception.encode('utf8') + print >>sys.stderr, formatted_traceback.encode('utf8') msg = u'

%s: '%(exception.__class__.__name__,) + unicode(str(exception), 'utf8', 'replace') + u'

' msg += u'

Failed to perform job: '+description msg += u'

Detailed traceback:

'
@@ -731,4 +731,4 @@ def main(args=sys.argv):
     
         
 if __name__ == '__main__':
-    sys.exit(main())
\ No newline at end of file
+    sys.exit(main())