diff --git a/screenless/bureau/publications/publications.py b/screenless/bureau/publications/publications.py index c017dc1..c6dd4bf 100644 --- a/screenless/bureau/publications/publications.py +++ b/screenless/bureau/publications/publications.py @@ -147,7 +147,10 @@ class Publications(Bureau): notecount = 0 # store links then make corresponding svg barcodes for link in html.findall(".//a"): - notecount += 1 + if "href" in link.attrib: + notecount += 1 + else: + continue # skip bogus links tmpcode = self._make_shorturl(link.attrib["href"]) svg = code128.svg("PBr." + tmpcode)