aboutsummaryrefslogtreecommitdiffstats
path: root/python/sandcrawler/fileset_platforms.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/sandcrawler/fileset_platforms.py')
-rw-r--r--python/sandcrawler/fileset_platforms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/sandcrawler/fileset_platforms.py b/python/sandcrawler/fileset_platforms.py
index a208dc4..5c13318 100644
--- a/python/sandcrawler/fileset_platforms.py
+++ b/python/sandcrawler/fileset_platforms.py
@@ -43,7 +43,7 @@ class FilesetPlatformHelper:
def chose_strategy(self, item: FilesetPlatformItem) -> IngestStrategy:
assert item.manifest
- total_size = sum([m.size for m in item.manifest]) or 0
+ total_size = sum([m.size or 0 for m in item.manifest]) or 0
largest_size = max([m.size or 0 for m in item.manifest]) or 0
if len(item.manifest) == 1:
if total_size < 64 * 1024 * 1024: