Ignore fixby elements without the src attribute.

This commit is contained in:
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

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('/'):