This commit is contained in:
Kovid Goyal 2008-02-21 21:41:45 +00:00
parent 6e451f5841
commit 67b2d44b33

View File

@ -861,7 +861,7 @@ class Main(MainWindow, Ui_MainWindow):
_('There was a temporary error talking to the device. Please unplug and reconnect the device and or reboot.')).show() _('There was a temporary error talking to the device. Please unplug and reconnect the device and or reboot.')).show()
return return
print >>sys.stderr, 'Error in job:', description.encode('utf8') print >>sys.stderr, 'Error in job:', description.encode('utf8')
print >>sys.stderr, exception[0], exception[1] print >>sys.stderr, exception
print >>sys.stderr, formatted_traceback.encode('utf8') print >>sys.stderr, formatted_traceback.encode('utf8')
if not self.device_error_dialog.isVisible(): if not self.device_error_dialog.isVisible():
msg = u'<p><b>%s</b>: '%(exception.__class__.__name__,) + unicode(str(exception), 'utf8', 'replace') + u'</p>' msg = u'<p><b>%s</b>: '%(exception.__class__.__name__,) + unicode(str(exception), 'utf8', 'replace') + u'</p>'