Skip to content
Browse files
Fixed None returned instead of default value.
  • Loading branch information
felixfontein committed Jun 27, 2015
1 parent 3d3b030 commit 5781644609e3aac850c41d4e71a08220934bb52d
Showing 1 changed file with 1 addition and 1 deletion.
@@ -531,7 +531,7 @@ def get_text_tag(tag, name, default):
if tag is None:
return default
t = tag.find(name)
if t is not None:
if t is not None and t.text is not None:
return t.text
return default

0 comments on commit 5781644

Please sign in to comment.