1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 14:31:46 +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
settings = yamldict[self.key_settings]
if self.key_settings_link_dotfile_default not in settings:
msg = f'no \"{self.key_settings_link_dotfile_default}\" key found'
raise YamlException(msg)
val = settings[self.key_settings_link_dotfile_default]
if val not in self.allowed_link_val:
err = f'bad link value: {val}'
self._log.err(err)
self._log.err(f'allowed: {self.allowed_link_val}')
raise YamlException(f'config content error: {err}')
if self.key_settings_link_dotfile_default in settings:
val = settings[self.key_settings_link_dotfile_default]
if val not in self.allowed_link_val:
err = f'bad link value: {val}'
self._log.err(err)
self._log.err(f'allowed: {self.allowed_link_val}')
raise YamlException(f'config content error: {err}')
@classmethod
def _yaml_load(cls, path):