Skip to content

Commit

Permalink
Improving return values.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jul 1, 2017
1 parent 9c3d107 commit b8729ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/utils.py
Expand Up @@ -2045,9 +2045,9 @@ def re_meta(line, match=None):
if match and result:
return (match, result[0])
elif not match and result:
return (result[0][0], result[0][1].strip())
return result[0][0], result[0][1].strip()
else:
return (None,)
return None, None


def extract_metadata(file_lines):
Expand Down

0 comments on commit b8729ea

Please sign in to comment.