[fix] Unknown domain

This commit is contained in:
ljf (zamentur) 2021-10-17 23:48:44 +02:00 committed by GitHub
parent 3f50247b27
commit 07c1ddceb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -223,7 +223,7 @@ class ConfigPanel:
self.values = {} self.values = {}
self.new_values = {} self.new_values = {}
if self.save_path 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}
) )