Navigation Menu

Skip to content

Commit

Permalink
Fixed None returned instead of default value.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jun 27, 2015
1 parent 3d3b030 commit 5781644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/command/import_wordpress.py
Expand Up @@ -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
else:
return default
Expand Down

0 comments on commit 5781644

Please sign in to comment.