Skip to content

Commit a447f6f

Browse files
committed
feat: Ignore missing event
1 parent 5789eeb commit a447f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/examples/traffic_light_nested_machine.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class red(State.Builder, enter="reset_elapsed"):
3434
def __init__(self, seconds_to_turn_state=5, seconds_running=20):
3535
self.seconds_to_turn_state = seconds_to_turn_state
3636
self.seconds_running = seconds_running
37-
super().__init__(queued=True)
37+
super().__init__(ignore_missing_event=True)
3838

3939
def on_timer(self, event: str, source: State, target: State):
4040
print(f".. Running {event} from {source.id} to {target.id}")

0 commit comments

Comments
 (0)