This commit is contained in:
Kovid Goyal 2010-12-06 09:44:45 -07:00
parent f9a861b3c8
commit f5b4029751

View File

@ -215,10 +215,8 @@ class SaveWorker(Thread):
if isbytestring(cpath): if isbytestring(cpath):
cpath = cpath.decode(filesystem_encoding) cpath = cpath.decode(filesystem_encoding)
formats = {} formats = {}
fmts = self.db.formats(i, index_is_id=True, verify_formats=False) if mi.formats:
if fmts: for fmt in mi.formats:
fmts = fmts.split(',')
for fmt in fmts:
fpath = self.db.format_abspath(i, fmt, index_is_id=True) fpath = self.db.format_abspath(i, fmt, index_is_id=True)
if fpath is not None: if fpath is not None:
if isbytestring(fpath): if isbytestring(fpath):