diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/sandcrawler/ia.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/sandcrawler/ia.py b/python/sandcrawler/ia.py index dbafa01..31f0260 100644 --- a/python/sandcrawler/ia.py +++ b/python/sandcrawler/ia.py @@ -123,6 +123,8 @@ class CdxApiClient: if resp.status_code != 200: raise CdxApiError(resp.text) #print(resp.url, file=sys.stderr) + if not resp.text: + return None rj = resp.json() if len(rj) <= 1: return None |