Ignore fixby elements without the src attribute.

master
voussoir 2022-04-06 11:50:13 -07:00
parent 36dde281d6
commit 1523fbbd3e
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 3 additions and 1 deletions

View File

@ -173,7 +173,9 @@ def soup_adjust_relative_links(soup, md_file, repo_path):
def fixby(tagname, attribute):
links = soup.find_all(tagname)
for link in links:
href = link[attribute]
href = link.get(attribute)
if not href:
continue
if '://' in href:
continue
if href.startswith('/'):