Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #215 from RasaHQ/factory-fail
Browse files Browse the repository at this point in the history
properly raise exception on unknown package
  • Loading branch information
tmbo committed Feb 7, 2018
2 parents 60f17ca + 6536033 commit f71347e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rasa_core/actions/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ def _action_class(action_name):
"action. Remember to prefix actions that should "
"utter a template with `utter_`. "
"Error: {}".format(action_name, e))
else:
# raises the original exception again
raise
# raises the original exception again
raise
except (AttributeError, KeyError) as e:
raise ValueError(
"Action '{}' doesn't correspond to a template / action. "
Expand Down

0 comments on commit f71347e

Please sign in to comment.