aboutsummaryrefslogtreecommitdiffstats
path: root/python/sandcrawler
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-01-09 12:34:14 -0800
committerBryan Newbold <bnewbold@archive.org>2020-01-09 16:32:51 -0800
commit101e3c818fa5852c11003e616526726e189ab2c3 (patch)
tree3d41ab201bad9a560dbe206171b3915833b28a9a /python/sandcrawler
parent55ef20102eaf8123dfc41e1d7ae80c50607c99f4 (diff)
downloadsandcrawler-101e3c818fa5852c11003e616526726e189ab2c3.tar.gz
sandcrawler-101e3c818fa5852c11003e616526726e189ab2c3.zip
location comes as a string, not list
Diffstat (limited to 'python/sandcrawler')
-rw-r--r--python/sandcrawler/ia.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/sandcrawler/ia.py b/python/sandcrawler/ia.py
index 198c8aa..6544e58 100644
--- a/python/sandcrawler/ia.py
+++ b/python/sandcrawler/ia.py
@@ -257,7 +257,7 @@ class WaybackClient:
# whole cluster is down though.
status_code = gwb_record.get_status()[0]
- location = (gwb_record.get_location() or [None])[0]
+ location = gwb_record.get_location() or None
body = None
if status_code == 200: