mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix #1116 ('UnicodeEncodeError' In Scientific American Recipe)
This commit is contained in:
parent
0b7256b19b
commit
6fab7e97c3
@ -1757,7 +1757,7 @@ class HTMLConverter(object, LoggingInterface):
|
|||||||
try:
|
try:
|
||||||
self.process_table(tag, tag_css)
|
self.process_table(tag, tag_css)
|
||||||
except Exception, err:
|
except Exception, err:
|
||||||
self.log_warning(_('An error occurred while processing a table: %s. Ignoring table markup.'), str(err))
|
self.log_warning(_('An error occurred while processing a table: %s. Ignoring table markup.'), unicode(err))
|
||||||
self.log_debug('', exc_info=True)
|
self.log_debug('', exc_info=True)
|
||||||
self.log_debug(_('Bad table:\n%s'), str(tag)[:300])
|
self.log_debug(_('Bad table:\n%s'), str(tag)[:300])
|
||||||
self.in_table = False
|
self.in_table = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user