This commit is contained in:
Kovid Goyal 2008-06-04 20:34:45 -07:00
parent a3732fead6
commit d897f81d2b
2 changed files with 13 additions and 9 deletions

View File

@ -14,9 +14,10 @@ class SearchItem(Ui_Form, QWidget):
_('Title') : 'title:',
_('Author') : 'author:',
_('Publisher') : 'publisher:',
_('Tag') :'tag',
_('Tag') : 'tag:',
_('Series') : 'series:',
_('Format') : 'format:',
_('Comments') : 'comments:',
_('Any') :''
}

View File

@ -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):
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>'