not all files have filetype

gutenberg1
eric 2019-09-14 12:51:34 -04:00
parent 380dc0c6b7
commit 293148c8ed
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']: