1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 16:49:42 +00:00
This commit is contained in:
deadc0de6
2024-10-23 20:34:55 +02:00
committed by deadc0de
parent 18b815a3cd
commit c1d24d55e1

View File

@@ -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):