Merge pull request #1361 from YunoHost/ci-format-dev

[CI] Format code with Black
This commit is contained in:
Alexandre Aubin 2021-10-18 00:09:11 +02:00 committed by GitHub
commit f43c7e3222
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}
)