Skip to content

Commit

Permalink
fix typo in dialogflow_client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 committed Mar 25, 2023
1 parent defbba8 commit 1e494d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def speak_result(self, result):
volume=self.volume)

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

0 comments on commit 1e494d8

Please sign in to comment.