From ee2b510b37d2832a67bb13cf27cbe520adff6b71 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 29 May 2019 18:58:14 +0200 Subject: kicad.dl: Classifying net-ties and test points as such. pn-part-search-list: Better value-based searches. Better filtering of irrelevant parts. --- src/ee/digikey/__init__.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ee/digikey') diff --git a/src/ee/digikey/__init__.py b/src/ee/digikey/__init__.py index 4c4adce..87860b9 100644 --- a/src/ee/digikey/__init__.py +++ b/src/ee/digikey/__init__.py @@ -498,6 +498,9 @@ class DigikeyParser(object): @staticmethod def ensure_absolute_url(origin_url, url): + if url is None: + return + if not url.startswith("http"): o = urllib.parse.urlparse(origin_url) url = "{}://{}{}".format(o.scheme, o.netloc, url) -- cgit v1.2.3