From a3719d6501e4b7cc520ba05264d99bdcc2d7bed7 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 15 Dec 2021 16:29:47 -0800 Subject: more fileset ingest tweaks --- python/sandcrawler/fileset_platforms.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/sandcrawler/fileset_platforms.py') diff --git a/python/sandcrawler/fileset_platforms.py b/python/sandcrawler/fileset_platforms.py index 81aad87..4adc9b7 100644 --- a/python/sandcrawler/fileset_platforms.py +++ b/python/sandcrawler/fileset_platforms.py @@ -205,6 +205,8 @@ class DataverseHelper(FilesetPlatformHelper): ) resp.raise_for_status() obj = resp.json() + if not "latestVersion" in obj["data"]: + raise PlatformScopeError("could not find latest version for dataverse record") obj_latest = obj["data"]["latestVersion"] dataset_version = ( f"{obj_latest['versionNumber']}.{obj_latest['versionMinorNumber']}" -- cgit v1.2.3