Skip to content

Commit a93488b

Browse files
authored
Merge pull request #258 from shawnlawyer/master
allows ask.default_intent to route to the default intent as a catch a…
2 parents 462c16e + 27ac6b5 commit a93488b

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)