forked from LBRYCommunity/lbry-sdk
check file exists before reading config
This commit is contained in:
parent
946488bce9
commit
1328cb4cce
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ class Config:
|
|||
self.initialize_post_conf_load()
|
||||
|
||||
def _read_conf_file(self, path):
|
||||
if not path:
|
||||
if not path or not os.path.exists(path):
|
||||
return
|
||||
ext = os.path.splitext(path)[1]
|
||||
decoder = settings_decoders.get(ext, False)
|
||||
|
|
Loading…
Reference in a new issue