mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix saving to disk when author is None.
This commit is contained in:
parent
c5af71ca01
commit
d1b930dec3
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user