Skip to content

Commit

Permalink
allow no platorm definition for Dialogflow bots. will fallback to tex…
Browse files Browse the repository at this point in the history
…t only
  • Loading branch information
Nicolas Wolf committed Feb 7, 2020
1 parent 1c1c3be commit bf735ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/dialogflow/chatbot_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ def get_platform(self):
self.logger.debug('Platform "' + str(platform) + '" is invalid. Setting platform to default value: ' +str(self.dotbot.chatbot_engine.get('defaultPlatform')))
platform = self.dotbot.chatbot_engine.get('defaultPlatform')

if platform not in self.available_platforms.values():
raise Exception("Dialoflowg platform not supported: " + str(platform))
#if platform not in self.available_platforms.values():
# raise Exception("Dialoflowg platform not supported: " + str(platform))

return platform

Expand Down

0 comments on commit bf735ac

Please sign in to comment.