From 042bd36c25206ff45e305d094028b6482a4c4074 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 9 Apr 2020 17:48:47 -0700 Subject: bugfix: handle missing file mimetypes --- bin/deliver_file2disk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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']: -- cgit v1.2.3