mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
YunohostError -> YunohostValidationError for some stuff
This commit is contained in:
parent
a5bf5246c5
commit
ba6f90d966
1 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ class ConfigPanel:
|
||||||
self._get_config_panel()
|
self._get_config_panel()
|
||||||
|
|
||||||
if not self.config:
|
if not self.config:
|
||||||
raise YunohostError("config_no_panel")
|
raise YunohostValidationError("config_no_panel")
|
||||||
|
|
||||||
# Read or get values and hydrate the config
|
# Read or get values and hydrate the config
|
||||||
self._load_current_values()
|
self._load_current_values()
|
||||||
|
@ -264,7 +264,7 @@ class ConfigPanel:
|
||||||
try:
|
try:
|
||||||
self.config["panels"][0]["sections"][0]["options"][0]
|
self.config["panels"][0]["sections"][0]["options"][0]
|
||||||
except (KeyError, IndexError):
|
except (KeyError, IndexError):
|
||||||
raise YunohostError(
|
raise YunohostValidationError(
|
||||||
"config_unknown_filter_key", filter_key=self.filter_key
|
"config_unknown_filter_key", filter_key=self.filter_key
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue