Merge pull request #42 from gutenbergtools/dedupe-files

not all files have filetype
gutenberg1
eshellman 2019-09-14 12:53:52 -04:00 committed by GitHub
commit 024429424f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class XMLishFormatter (BaseFormatter.BaseFormatter):
dedupable = {}
for file_ in dc.files:
if file_.filetype.endswith('images'):
if file_.filetype and file_.filetype.endswith('images'):
dedupable[file_.filetype] = file_
do_dedupe = False
for ft in ['epub', 'kindle', 'pdf']: