We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if container
1 parent ae070f8 commit d43ba14Copy full SHA for d43ba14
silverback/main.py
@@ -297,7 +297,7 @@ def broker_task_decorator(
297
):
298
raise ContainerTypeMismatchError(task_type, container)
299
300
- elif container and isinstance(container, ContractEventWrapper):
+ elif isinstance(container, ContractEventWrapper):
301
if len(container.events) != 1:
302
raise InvalidContainerTypeError(
303
f"Requires exactly 1 event to unwrap: {container.events}"
0 commit comments