aboutsummaryrefslogtreecommitdiff
path: root/src/ee/digikey
diff options
context:
space:
mode:
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)