mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[CI] Format code with Black
This commit is contained in:
parent
07c1ddceb7
commit
33d973bab4
1 changed files with 6 additions and 1 deletions
|
@ -223,7 +223,12 @@ class ConfigPanel:
|
||||||
self.values = {}
|
self.values = {}
|
||||||
self.new_values = {}
|
self.new_values = {}
|
||||||
|
|
||||||
if self.save_path and self.save_mode != "diff" and not creation and not os.path.exists(self.save_path):
|
if (
|
||||||
|
self.save_path
|
||||||
|
and self.save_mode != "diff"
|
||||||
|
and not creation
|
||||||
|
and not os.path.exists(self.save_path)
|
||||||
|
):
|
||||||
raise YunohostValidationError(
|
raise YunohostValidationError(
|
||||||
f"{self.entity_type}_unknown", **{self.entity_type: entity}
|
f"{self.entity_type}_unknown", **{self.entity_type: entity}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue