From e4c153d4f6d8c815c7e792fec2f40cdac39bab35 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 16 Dec 2021 02:01:31 -0800 Subject: filesets: handle weird figshare link-only case better --- python/sandcrawler/fileset_platforms.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/sandcrawler/fileset_platforms.py b/python/sandcrawler/fileset_platforms.py index 07d9844..b0925b9 100644 --- a/python/sandcrawler/fileset_platforms.py +++ b/python/sandcrawler/fileset_platforms.py @@ -472,7 +472,10 @@ class FigshareHelper(FilesetPlatformHelper): # extra=dict(), ) ) - assert not row.get("is_link_only") + if row.get("is_link_only"): + raise PlatformScopeError( + f"figshare.org file is just a link (not a file): {row['name']} at {row['download_url']}" + ) authors = [] for author in obj["authors"]: -- cgit v1.2.3