Skip to content

Commit

Permalink
Correctly handle meta tags with no name while extracting metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
punchagan committed Jun 12, 2017
1 parent 50dbc9d commit 37e5f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/compile/html.py
Expand Up @@ -103,7 +103,7 @@ def read_metadata(self, post, file_metadata_regexp=None, unslugify_titles=False,
metadata['title'] = title_tag.text
meta_tags = doc.findall('*//meta')
for tag in meta_tags:
k = tag.get('name').lower()
k = tag.get('name', '').lower()
if not k:
continue
elif k == 'keywords':
Expand Down

0 comments on commit 37e5f83

Please sign in to comment.