mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5080 (catch UnicodeDecodeError when converting CHM)
This commit is contained in:
commit
cfccd4e79f
@ -19,6 +19,8 @@ def _clean(s):
|
||||
|
||||
def _detag(tag):
|
||||
str = u""
|
||||
if tag is None:
|
||||
return str
|
||||
for elem in tag:
|
||||
if hasattr(elem, "contents"):
|
||||
str += _detag(elem)
|
||||
|
Loading…
x
Reference in New Issue
Block a user