mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] args for config panel i18n unknown key
This commit is contained in:
parent
c506477551
commit
4532c75f29
1 changed files with 2 additions and 2 deletions
|
@ -220,9 +220,9 @@ class ConfigPanel:
|
|||
self.new_values = {}
|
||||
|
||||
if self.save_path and not creation and not os.path.exists(self.save_path):
|
||||
raise YunohostError(f"{self.entity_type}_unknown", name=entity)
|
||||
raise YunohostError(f"{self.entity_type}_unknown", **{self.entity_type:entity})
|
||||
if self.save_path and creation and os.path.exists(self.save_path):
|
||||
raise YunohostError(f"{self.entity_type}_exists", name=entity)
|
||||
raise YunohostError(f"{self.entity_type}_exists", **{self.entity_type:entity})
|
||||
|
||||
# Search for hooks in the config panel
|
||||
self.hooks = {func: getattr(self, func)
|
||||
|
|
Loading…
Add table
Reference in a new issue