Skip to content

Commit 3567a95

Browse files
committed
Fix TypeError when using config_expr with @trigger events
Fixes #3080
1 parent 8e29f77 commit 3567a95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

metaflow/plugins/events_decorator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def process_event(self, event):
104104
if is_stringish(event):
105105
return {"name": str(event)}
106106
elif isinstance(event, dict):
107+
event = dict(event) # make a copy since we will modify the dict
107108
if "name" not in event:
108109
raise MetaflowException(
109110
"The *event* attribute for *@trigger* is missing the *name* key."

0 commit comments

Comments
 (0)