not all files have filetype
parent
380dc0c6b7
commit
293148c8ed
|
@ -66,7 +66,7 @@ class XMLishFormatter (BaseFormatter.BaseFormatter):
|
||||||
|
|
||||||
dedupable = {}
|
dedupable = {}
|
||||||
for file_ in dc.files:
|
for file_ in dc.files:
|
||||||
if file_.filetype.endswith('images'):
|
if file_.filetype and file_.filetype.endswith('images'):
|
||||||
dedupable[file_.filetype] = file_
|
dedupable[file_.filetype] = file_
|
||||||
do_dedupe = False
|
do_dedupe = False
|
||||||
for ft in ['epub', 'kindle', 'pdf']:
|
for ft in ['epub', 'kindle', 'pdf']:
|
||||||
|
|
Loading…
Reference in New Issue