mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
detag handle None
This commit is contained in:
parent
43d6a53d7b
commit
450e9ef176
@ -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