mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
configpanel: do not raise error if no settings file
This commit is contained in:
parent
66cb855c0c
commit
e7b43c763c
1 changed files with 2 additions and 1 deletions
|
@ -577,7 +577,8 @@ class ConfigPanel:
|
|||
|
||||
def _get_raw_settings(self, config: ConfigPanelModel) -> "RawSettings":
|
||||
if not self.save_path or not os.path.exists(self.save_path):
|
||||
raise YunohostValidationError("config_no_settings")
|
||||
return {}
|
||||
# raise YunohostValidationError("config_no_settings")
|
||||
|
||||
return read_yaml(self.save_path)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue