Skip to content

Commit 1e494d8

Browse files
committed
fix typo in dialogflow_client.py
1 parent defbba8 commit 1e494d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dialogflow_task_executive/node_scripts/dialogflow_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def speak_result(self, result):
271271
volume=self.volume)
272272

273273
# for japanese or utf-8 languages
274-
if self.language == 'ja-JP' and sys.version <= 2:
274+
if self.language == 'ja-JP' and sys.version_info.major <= 2:
275275
msg.arg = result.fulfillment_text.encode('utf-8')
276276
else:
277277
msg.arg = result.fulfillment_text

0 commit comments

Comments
 (0)