mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
AY-5539 - protect from empty field in Settings
This commit is contained in:
parent
4e07b756af
commit
577da3fb7f
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue