summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-18 16:07:14 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-18 16:07:14 -0700
commitbfc0d6597fa98e89615e6d82eed9488fd9a1e087 (patch)
tree769a7bb28fb32296ec49c0aa30d3e0ce115b1162 /python/fatcat_tools
parent95fdfd31d73a2729eae3f20b3b6488d04782e0ce (diff)
downloadfatcat-bfc0d6597fa98e89615e6d82eed9488fd9a1e087.tar.gz
fatcat-bfc0d6597fa98e89615e6d82eed9488fd9a1e087.zip
minor arabesque tweaks
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/importers/arabesque.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/arabesque.py b/python/fatcat_tools/importers/arabesque.py
index e143ad99..c0311903 100644
--- a/python/fatcat_tools/importers/arabesque.py
+++ b/python/fatcat_tools/importers/arabesque.py
@@ -65,6 +65,7 @@ class ArabesqueMatchImporter(EntityImporter):
assert extid_type in ('doi', 'pmcid', 'pmid')
self.extid_type = extid_type
self.default_link_rel = kwargs.get("default_link_rel", "web")
+ assert self.default_link_rel
self.default_mime = kwargs.get("default_mime", None)
self.do_updates = kwargs.get("do_updates", False)
self.require_grobid = require_grobid
@@ -148,6 +149,7 @@ class ArabesqueMatchImporter(EntityImporter):
self.counts['skip-update-disabled'] += 1
return False
+ # TODO: this code path never gets hit because of the check above
if set(fe.release_ids) == set(existing.release_ids):
existing_urls = set([u.url for u in existing.urls])
new_urls = set([u.url for u in fe.urls])