mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1183 (UnicodeEncodeError: 'ascii' codec can't encode character)
This commit is contained in:
parent
0c976d173d
commit
ad7f52c599
@ -1757,9 +1757,9 @@ class HTMLConverter(object, LoggingInterface):
|
||||
try:
|
||||
self.process_table(tag, tag_css)
|
||||
except Exception, err:
|
||||
self.log_warning(_('An error occurred while processing a table: %s. Ignoring table markup.'), unicode(err))
|
||||
self.log_warning(_('An error occurred while processing a table: %s. Ignoring table markup.'), repr(err))
|
||||
self.log_debug('', exc_info=True)
|
||||
self.log_debug(_('Bad table:\n%s'), str(tag)[:300])
|
||||
self.log_debug(_('Bad table:\n%s'), unicode(tag)[:300])
|
||||
self.in_table = False
|
||||
self.process_children(tag, tag_css, tag_pseudo_css)
|
||||
finally:
|
||||
|
Loading…
x
Reference in New Issue
Block a user