diff options
author | Bryan Newbold <bnewbold@archive.org> | 2022-05-05 11:21:29 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2022-05-05 11:21:29 -0700 |
commit | 21ad5cd9942044939c8203dd076ea080b6d55a61 (patch) | |
tree | 2ffbf6a641302615275fecf233eb8351c3ecf0a1 /python/sandcrawler | |
parent | 1f9ca570bd168154a72adcd2454b992dbc7e8d0a (diff) | |
download | sandcrawler-21ad5cd9942044939c8203dd076ea080b6d55a61.tar.gz sandcrawler-21ad5cd9942044939c8203dd076ea080b6d55a61.zip |
ingest spn2: fix tests
Diffstat (limited to 'python/sandcrawler')
-rw-r--r-- | python/sandcrawler/__init__.py | 1 | ||||
-rw-r--r-- | python/sandcrawler/ia.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/python/sandcrawler/__init__.py b/python/sandcrawler/__init__.py index 6718c57..469c2a2 100644 --- a/python/sandcrawler/__init__.py +++ b/python/sandcrawler/__init__.py @@ -7,6 +7,7 @@ from .ia import ( CdxRow, PetaboxError, ResourceResult, + SavePageNowBackoffError, SavePageNowClient, SavePageNowError, WarcResource, diff --git a/python/sandcrawler/ia.py b/python/sandcrawler/ia.py index 9c727ce..7365383 100644 --- a/python/sandcrawler/ia.py +++ b/python/sandcrawler/ia.py @@ -1012,7 +1012,7 @@ class SavePageNowClient: break # check if SPNv2 user has capacity available - resp = self.v2_session.get("https://web.archive.org/save/status/user") + resp = self.v2_session.get(f"{self.v2endpoint}/status/user") if resp.status_code == 429: raise SavePageNowBackoffError( f"SPNv2 availability API status_code: {resp.status_code}" |