Skip to content

Commit 327f71f

Browse files
authored
Event not having proper dict attributes (#97)
1 parent 2d61057 commit 327f71f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/workflows/context/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ async def my_step(self, ctx: Context, ev: StartEvent) -> StopEvent:
636636
)
637637
if type(event) is event_type:
638638
if all(
639-
event.get(k, default=None) == v for k, v in requirements.items()
639+
getattr(event, k, None) == v for k, v in requirements.items()
640640
):
641641
return event
642642
else:

0 commit comments

Comments
 (0)