AY-5539 - protect from empty field in Settings

This commit is contained in:
Petr Kalis 2024-06-03 15:57:30 +02:00
parent 4e07b756af
commit 577da3fb7f

View file

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