Fix formatting

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Petr Kalis 2024-05-29 12:13:10 +02:00 committed by GitHub
parent 170b1ab9dc
commit ea626e1257
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1839,8 +1839,10 @@ class PublisherController(BasePublisherController):
)
for identifier, creator in self._create_context.creators.items():
try:
if (allowed_creator_identifiers and
identifier not in allowed_creator_identifiers):
if (
allowed_creator_identifiers is not None
and identifier not in allowed_creator_identifiers
):
self.log.debug(f"{identifier} not allowed for context")
continue
output[identifier] = CreatorItem.from_creator(creator)