mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 13:35:31 +01:00
oops
This commit is contained in:
parent
38402d7e56
commit
e4082417f9
1 changed files with 2 additions and 2 deletions
|
|
@ -647,7 +647,7 @@ def device_job_exception(self, id, description, exception, formatted_traceback):
|
|||
Handle exceptions in threaded jobs.
|
||||
'''
|
||||
print >>sys.stderr, 'Error in job:', description.encode('utf8')
|
||||
print >>sys.stderr, exception.encode('utf8')
|
||||
print >>sys.stderr, exception
|
||||
print >>sys.stderr, formatted_traceback.encode('utf8')
|
||||
if not self.device_error_dialog.isVisible():
|
||||
msg = u'<p><b>%s</b>: '%(exception.__class__.__name__,) + unicode(str(exception), 'utf8', 'replace') + u'</p>'
|
||||
|
|
@ -661,7 +661,7 @@ def device_job_exception(self, id, description, exception, formatted_traceback):
|
|||
def conversion_job_exception(self, id, description, exception, formatted_traceback, log):
|
||||
print >>sys.stderr, 'Error in job:', description.encode('utf8')
|
||||
print >>sys.stderr, log.encode('utf8')
|
||||
print >>sys.stderr, exception.encode('utf8')
|
||||
print >>sys.stderr, exception
|
||||
print >>sys.stderr, formatted_traceback.encode('utf8')
|
||||
msg = u'<p><b>%s</b>: '%(exception.__class__.__name__,) + unicode(str(exception), 'utf8', 'replace') + u'</p>'
|
||||
msg += u'<p>Failed to perform <b>job</b>: '+description
|
||||
|
|
|
|||
Loading…
Reference in a new issue