mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 11:55:34 +01:00
oops
This commit is contained in:
parent
0012b7cd64
commit
c1a06e9c37
1 changed files with 3 additions and 1 deletions
|
|
@ -421,7 +421,9 @@ def set(self, name, val):
|
|||
raise ValueError('The option %s is not defined.'%name)
|
||||
if not os.path.exists(config_dir):
|
||||
make_config_dir()
|
||||
src = read_data(self.config_file_path)
|
||||
src = b''
|
||||
with suppress(FileNotFoundError):
|
||||
src = read_data(self.config_file_path)
|
||||
opts = self.option_set.parse_string(src)
|
||||
setattr(opts, name, val)
|
||||
src = self.option_set.serialize(opts)
|
||||
|
|
|
|||
Loading…
Reference in a new issue