mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
oops
This commit is contained in:
parent
0012b7cd64
commit
c1a06e9c37
@ -421,6 +421,8 @@ class Config(ConfigInterface):
|
|||||||
raise ValueError('The option %s is not defined.'%name)
|
raise ValueError('The option %s is not defined.'%name)
|
||||||
if not os.path.exists(config_dir):
|
if not os.path.exists(config_dir):
|
||||||
make_config_dir()
|
make_config_dir()
|
||||||
|
src = b''
|
||||||
|
with suppress(FileNotFoundError):
|
||||||
src = read_data(self.config_file_path)
|
src = read_data(self.config_file_path)
|
||||||
opts = self.option_set.parse_string(src)
|
opts = self.option_set.parse_string(src)
|
||||||
setattr(opts, name, val)
|
setattr(opts, name, val)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user