From efe0e601826f606bf44e199740a67c79566c8386 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 28 Aug 2022 17:25:31 +0200 Subject: [PATCH] [fix] defaultapp: domain may not exist in app_map dict output --- src/domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain.py b/src/domain.py index e40b4f03c..29040ced8 100644 --- a/src/domain.py +++ b/src/domain.py @@ -461,7 +461,7 @@ class DomainConfigPanel(ConfigPanel): ): from yunohost.app import app_ssowatconf, app_map - if "/" in app_map(raw=True)[self.entity]: + if "/" in app_map(raw=True).get(self.entity, {}): raise YunohostValidationError( "app_make_default_location_already_used", app=self.future_values["default_app"],