Skip to content

Commit

Permalink
Heal my psychotic desorders
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Aug 17, 2019
1 parent 7050c2c commit b8c19a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weasyprint/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,11 @@ def get_html_metadata(wrapper_element, base_url):
elif element.tag == 'link' and element_has_link_type(
element, 'attachment'):
url = get_url_attribute(element, 'href', base_url)
atitle = element.get('title', None)
attachment_title = element.get('title', None)
if url is None:
LOGGER.error('Missing href in <link rel="attachment">')
else:
attachments.append((url, atitle))
attachments.append((url, attachment_title))
return dict(title=title, description=description, generator=generator,
keywords=keywords, authors=authors,
created=created, modified=modified,
Expand Down

1 comment on commit b8c19a2

@Tontyna
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I knew that you wouldn't resist ❤️

Please sign in to comment.