diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-12-15 16:49:39 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-12-15 16:49:39 -0800 |
commit | 423892e6fbd40851224bddddb9e76279b78e0e1a (patch) | |
tree | c445bf0b9f6cb68f5fdacc197249ac742c1ea3f0 /python | |
parent | 616ceaea547394bdb5164112219eaf3e7dff4aa0 (diff) | |
download | sandcrawler-423892e6fbd40851224bddddb9e76279b78e0e1a.tar.gz sandcrawler-423892e6fbd40851224bddddb9e76279b78e0e1a.zip |
lint ('not in')
Diffstat (limited to 'python')
-rw-r--r-- | python/sandcrawler/fileset_platforms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/sandcrawler/fileset_platforms.py b/python/sandcrawler/fileset_platforms.py index 4adc9b7..07d9844 100644 --- a/python/sandcrawler/fileset_platforms.py +++ b/python/sandcrawler/fileset_platforms.py @@ -205,7 +205,7 @@ class DataverseHelper(FilesetPlatformHelper): ) resp.raise_for_status() obj = resp.json() - if not "latestVersion" in obj["data"]: + if "latestVersion" not in obj["data"]: raise PlatformScopeError("could not find latest version for dataverse record") obj_latest = obj["data"]["latestVersion"] dataset_version = ( @@ -769,7 +769,7 @@ class ArchiveOrgHelper(FilesetPlatformHelper): ) # print(f" archiveorg processing item={item_name}", file=sys.stderr) - item = self.session.get_item(item_name, timeout=60.0) + item = self.session.get_item(item_name) item_name = item.identifier item_collection = item.metadata["collection"] if type(item_collection) == list: |