mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1361 from YunoHost/ci-format-dev
[CI] Format code with Black
This commit is contained in:
commit
f43c7e3222
1 changed files with 6 additions and 1 deletions
|
@ -223,7 +223,12 @@ class ConfigPanel:
|
|||
self.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(
|
||||
f"{self.entity_type}_unknown", **{self.entity_type: entity}
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue