Skip to content

Commit d43ba14

Browse files
committed
fix: accidental check of if container causes massive amount of reqs
`if container` delegates to `len(container) == 0` check
1 parent ae070f8 commit d43ba14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

silverback/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def broker_task_decorator(
297297
):
298298
raise ContainerTypeMismatchError(task_type, container)
299299

300-
elif container and isinstance(container, ContractEventWrapper):
300+
elif isinstance(container, ContractEventWrapper):
301301
if len(container.events) != 1:
302302
raise InvalidContainerTypeError(
303303
f"Requires exactly 1 event to unwrap: {container.events}"

0 commit comments

Comments
 (0)