aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-04-09 17:48:47 -0700
committerBryan Newbold <bnewbold@archive.org>2020-04-09 17:48:47 -0700
commit042bd36c25206ff45e305d094028b6482a4c4074 (patch)
tree5e25122ad6227855416fe964658e0581e048332c /bin
parent5b22495057fa9cb40271764c9e80166882ba3f21 (diff)
downloadfatcat-covid19-042bd36c25206ff45e305d094028b6482a4c4074.tar.gz
fatcat-covid19-042bd36c25206ff45e305d094028b6482a4c4074.zip
bugfix: handle missing file mimetypes
Diffstat (limited to 'bin')
-rwxr-xr-xbin/deliver_file2disk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/deliver_file2disk.py b/bin/deliver_file2disk.py
index 49e0c73..e5f13c0 100755
--- a/bin/deliver_file2disk.py
+++ b/bin/deliver_file2disk.py
@@ -123,7 +123,7 @@ class DeliverFatcatDisk:
"""
good = []
for f in files:
- if f['mimetype'] and not 'pdf' in f['mimetype'].lower():
+ if f.get('mimetype') and not 'pdf' in f['mimetype'].lower():
continue
for url in f['urls']:
if 'archive.org/' in url['url']: