mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Save to disk: Dont error out if the user deletes all formats to be saved.
This commit is contained in:
parent
0e79f5a1c3
commit
99452442df
@ -204,7 +204,7 @@ class Saver(QObject):
|
||||
def write_book(self, book_id, mi, components, fmts):
|
||||
base_path = os.path.join(self.root, *components)
|
||||
base_dir = os.path.dirname(base_path)
|
||||
if self.opts.formats != 'all':
|
||||
if self.opts.formats and self.opts.formats != 'all':
|
||||
asked_formats = {x.lower().strip() for x in self.opts.formats.split(',')}
|
||||
fmts = asked_formats.intersection(fmts)
|
||||
if not fmts:
|
||||
|
Loading…
x
Reference in New Issue
Block a user