Skip to content

Commit

Permalink
moved type check for former branch flow step back where it was and ad…
Browse files Browse the repository at this point in the history
…justed check
  • Loading branch information
twerkmeister committed Oct 27, 2023
1 parent a602a9a commit 8c0260b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rasa/core/policies/flow_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,10 @@ def run_step(
structlogger.debug("flow.step.run.user_message")
return ContinueFlowWithNextStep()

elif type(step) is FlowStep:
structlogger.debug("flow.step.run.base_flow_step")
return ContinueFlowWithNextStep()

elif isinstance(step, GenerateResponseFlowStep):
structlogger.debug("flow.step.run.generate_response")
generated = step.generate(tracker)
Expand All @@ -697,10 +701,6 @@ def run_step(
reset_events = self._reset_scoped_slots(flow, tracker)
return ContinueFlowWithNextStep(events=reset_events)

elif isinstance(step, FlowStep):
structlogger.debug("flow.step.run.base_flow_step")
return ContinueFlowWithNextStep()

else:
raise FlowException(f"Unknown flow step type {type(step)}")

Expand Down

0 comments on commit 8c0260b

Please sign in to comment.