mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Fix #745
This commit is contained in:
parent
a3732fead6
commit
d897f81d2b
@ -13,10 +13,11 @@ class SearchItem(Ui_Form, QWidget):
|
||||
FIELDS = {
|
||||
_('Title') : 'title:',
|
||||
_('Author') : 'author:',
|
||||
_('Publisher') :'publisher:',
|
||||
_('Tag') :'tag',
|
||||
_('Series') :'series:',
|
||||
_('Format') :'format:',
|
||||
_('Publisher') : 'publisher:',
|
||||
_('Tag') : 'tag:',
|
||||
_('Series') : 'series:',
|
||||
_('Format') : 'format:',
|
||||
_('Comments') : 'comments:',
|
||||
_('Any') :''
|
||||
}
|
||||
|
||||
|
@ -1056,11 +1056,14 @@ 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.encode('utf8')
|
||||
if log:
|
||||
print >>sys.stderr, log.encode('utf8', 'ignore') if isinstance(log, unicode) else log
|
||||
print >>sys.stderr, exception
|
||||
print >>sys.stderr, formatted_traceback.encode('utf8', 'ignore') if isinstance(formatted_traceback, unicode) else formatted_traceback
|
||||
try:
|
||||
print >>sys.stderr, 'Error in job:', description.encode('utf8')
|
||||
if log:
|
||||
print >>sys.stderr, log.encode('utf8', 'ignore') if isinstance(log, unicode) else log
|
||||
print >>sys.stderr, exception
|
||||
print >>sys.stderr, formatted_traceback.encode('utf8', 'ignore') if isinstance(formatted_traceback, unicode) else formatted_traceback
|
||||
except:
|
||||
pass
|
||||
msg = u'<p><b>%s</b>: %s</p>'%exception
|
||||
msg += u'<p>Failed to perform <b>job</b>: '+description
|
||||
msg += u'<p>Detailed <b>traceback</b>:<pre>'
|
||||
|
Loading…
x
Reference in New Issue
Block a user