mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-08 01:14:41 +01:00
oops
This commit is contained in:
parent
0012b7cd64
commit
c1a06e9c37
1 changed files with 3 additions and 1 deletions
|
|
@ -421,6 +421,8 @@ 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 = b''
|
||||
with suppress(FileNotFoundError):
|
||||
src = read_data(self.config_file_path)
|
||||
opts = self.option_set.parse_string(src)
|
||||
setattr(opts, name, val)
|
||||
|
|
|
|||
Loading…
Reference in a new issue