summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers/fileset_generic.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_tools/importers/fileset_generic.py')
-rw-r--r--python/fatcat_tools/importers/fileset_generic.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/fileset_generic.py b/python/fatcat_tools/importers/fileset_generic.py
index 2207b938..d0c8b221 100644
--- a/python/fatcat_tools/importers/fileset_generic.py
+++ b/python/fatcat_tools/importers/fileset_generic.py
@@ -43,7 +43,8 @@ class FilesetImporter(EntityImporter):
self.counts["skip-no-files"] += 1
return False
- for f in row.get("manifest"):
+ manifest: List[Dict[str, Any]] = row.get("manifest") or []
+ for f in manifest:
for k in ("sha1", "md5"):
if not f.get(k):
self.counts["skip-missing-file-field"] += 1