mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 19:09:44 +00:00
fix bug
This commit is contained in:
@@ -1359,15 +1359,13 @@ class CfgYaml:
|
|||||||
|
|
||||||
# check settings values
|
# check settings values
|
||||||
settings = yamldict[self.key_settings]
|
settings = yamldict[self.key_settings]
|
||||||
if self.key_settings_link_dotfile_default not in settings:
|
if self.key_settings_link_dotfile_default in settings:
|
||||||
msg = f'no \"{self.key_settings_link_dotfile_default}\" key found'
|
val = settings[self.key_settings_link_dotfile_default]
|
||||||
raise YamlException(msg)
|
if val not in self.allowed_link_val:
|
||||||
val = settings[self.key_settings_link_dotfile_default]
|
err = f'bad link value: {val}'
|
||||||
if val not in self.allowed_link_val:
|
self._log.err(err)
|
||||||
err = f'bad link value: {val}'
|
self._log.err(f'allowed: {self.allowed_link_val}')
|
||||||
self._log.err(err)
|
raise YamlException(f'config content error: {err}')
|
||||||
self._log.err(f'allowed: {self.allowed_link_val}')
|
|
||||||
raise YamlException(f'config content error: {err}')
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _yaml_load(cls, path):
|
def _yaml_load(cls, path):
|
||||||
|
|||||||
Reference in New Issue
Block a user