Fix saving to disk when author is None.

This commit is contained in:
Kovid Goyal 2007-08-25 15:55:04 +00:00
parent c5af71ca01
commit d1b930dec3

View File

@ -1005,6 +1005,8 @@ class LibraryDatabase(object):
by_author[au] = [] by_author[au] = []
by_author[au].append(index) by_author[au].append(index)
for au in by_author.keys(): for au in by_author.keys():
if au is None:
au = ''
apath = os.path.join(dir, au) apath = os.path.join(dir, au)
if not os.path.exists(apath): if not os.path.exists(apath):
os.mkdir(apath) os.mkdir(apath)