Moar fiks test

This commit is contained in:
Alexandre Aubin 2021-10-14 22:14:58 +02:00
parent 6c1a6dfd21
commit 5744e8eb16

View file

@ -224,11 +224,11 @@ class ConfigPanel:
self.new_values = {}
if self.save_path and not creation and not os.path.exists(self.save_path):
raise YunohostError(
raise YunohostValidationError(
f"{self.entity_type}_unknown", **{self.entity_type: entity}
)
if self.save_path and creation and os.path.exists(self.save_path):
raise YunohostError(
raise YunohostValidationError(
f"{self.entity_type}_exists", **{self.entity_type: entity}
)