jgalar / CanadianTracker

Canadian Tracker scrapes the Canadian Tire website to provide a price history.
7 stars 1 forks source link

sku.html: omit SKU link if there is no URL #63

Closed simark closed 9 months ago

simark commented 11 months ago

The sku_url variable that is passed to sku.html can be None (we may not know the URL for all SKUs). The URL is currently printed unconditionally, leading to broken links like:

https://canadiantire.canone

... if there is not URL. Omit the link if there is not URL.