mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-26 16:06:35 +01:00
Fix saving to disk when author is None.
This commit is contained in:
parent
c5af71ca01
commit
d1b930dec3
1 changed files with 2 additions and 0 deletions
|
|
@ -1005,6 +1005,8 @@ def export_to_dir(self, dir, indices):
|
|||
by_author[au] = []
|
||||
by_author[au].append(index)
|
||||
for au in by_author.keys():
|
||||
if au is None:
|
||||
au = ''
|
||||
apath = os.path.join(dir, au)
|
||||
if not os.path.exists(apath):
|
||||
os.mkdir(apath)
|
||||
|
|
|
|||
Loading…
Reference in a new issue