From b8c19a287808507405dede1357c024ec7fd65626 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Sat, 17 Aug 2019 11:04:57 +0200 Subject: [PATCH] Heal my psychotic desorders --- weasyprint/html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weasyprint/html.py b/weasyprint/html.py index c1617fda3..76341a635 100644 --- a/weasyprint/html.py +++ b/weasyprint/html.py @@ -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 ') 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,