Skip to content

Commit 27ac6b5

Browse files
committed
allows ask.default_intent to route to the default intent as a catch all, without explicitly requiring an @ask.intent('just_here_put_something_in__intent_view_funcs') to be used as well.
1 parent fe40764 commit 27ac6b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_ask/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def _flask_view_func(self, *args, **kwargs):
802802
result = self._session_ended_view_func()
803803
else:
804804
result = "{}", 200
805-
elif request_type == 'IntentRequest' and self._intent_view_funcs:
805+
elif request_type == 'IntentRequest' and ( self._intent_view_funcs or self._default_intent_view_func is not None ):
806806
result = self._map_intent_to_view_func(self.request.intent)()
807807
elif request_type == 'Display.ElementSelected' and self._display_element_selected_func:
808808
result = self._display_element_selected_func()

0 commit comments

Comments
 (0)