detag handle None

This commit is contained in:
James Ralston 2010-03-07 23:18:26 -08:00
parent 43d6a53d7b
commit 450e9ef176

View File

@ -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)