Skip to content
Permalink
Browse files
Fixed None returned instead of default value.
  • Loading branch information
felixfontein committed Jun 27, 2015
1 parent 3d3b030 commit 5781644609e3aac850c41d4e71a08220934bb52d
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/plugins/command/import_wordpress.py
@@ -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

0 comments on commit 5781644

Please sign in to comment.