mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1537 (This book cause error on coversion to lrt)
This commit is contained in:
parent
5d91e50f52
commit
1621e0141d
@ -615,7 +615,7 @@ class Job(object):
|
||||
self.log = unicode(self.log, 'utf-8', 'replace')
|
||||
ans.extend(self.log.split('\n'))
|
||||
|
||||
ans = [x.decode(preferred_encoding, 'replace') if isinstance(x, 'str') else x for x in ans]
|
||||
ans = [x.decode(preferred_encoding, 'replace') if isinstance(x, str) else x for x in ans]
|
||||
|
||||
return u'<br>'.join(ans)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user