aboutsummaryrefslogtreecommitdiff
path: root/src/ee/digikey
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-05-29 18:58:14 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-05-29 18:58:14 +0200
commitee2b510b37d2832a67bb13cf27cbe520adff6b71 (patch)
treebb693c627fbe999b48bf301809222c3f039cca41 /src/ee/digikey
parent75e5bbd0679f4212ad6e9a402c9c68b7b5f40cae (diff)
downloadee-python-ee2b510b37d2832a67bb13cf27cbe520adff6b71.tar.gz
ee-python-ee2b510b37d2832a67bb13cf27cbe520adff6b71.tar.bz2
ee-python-ee2b510b37d2832a67bb13cf27cbe520adff6b71.tar.xz
ee-python-ee2b510b37d2832a67bb13cf27cbe520adff6b71.zip
kicad.dl: Classifying net-ties and test points as such.
pn-part-search-list: Better value-based searches. Better filtering of irrelevant parts.
Diffstat (limited to 'src/ee/digikey')
-rw-r--r--src/ee/digikey/__init__.py3
1 files changed, 3 insertions, 0 deletions
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)