From 577da3fb7fcbc2a217d487708b093d81f6c5dee9 Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Mon, 3 Jun 2024 15:57:30 +0200 Subject: [PATCH] AY-5539 - protect from empty field in Settings --- client/ayon_core/tools/publisher/control.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/ayon_core/tools/publisher/control.py b/client/ayon_core/tools/publisher/control.py index 72a89d2a3a..66487343d1 100644 --- a/client/ayon_core/tools/publisher/control.py +++ b/client/ayon_core/tools/publisher/control.py @@ -1884,7 +1884,11 @@ class PublisherController(BasePublisherController): allowed_creator_labels = None if profile: - allowed_creator_labels = profile["creator_labels"] + allowed_creator_labels = { + label + for label in profile["creator_labels"] + if label + } self.log.debug(f"Only allowed `{allowed_creator_labels}` creators") return allowed_creator_labels