Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

google-assistant-sdk/pushtotalk: fix import boilerplate for python3.6 #162

Merged
merged 1 commit into from
Jan 12, 2018

Conversation

proppy
Copy link
Contributor

@proppy proppy commented Jan 12, 2018

Fixes #160.

In Python3.6, the error changed fromSystemError to ImportError so we need to catch both.

Fixes googlesamples#160.

In Python3.6, the error
changed (https://hg.python.org/cpython/rev/c4e4886c6052) from `SystemError` to
`ImportError` so we need to catch both.
@proppy proppy requested a review from Fleker January 12, 2018 02:55
@Fleker
Copy link
Contributor

Fleker commented Jan 12, 2018

Is the best way to handle this to catch an exception, or can we detect that there'd be an import error ahead of time?

@proppy
Copy link
Contributor Author

proppy commented Jan 12, 2018

@Fleker filed #163 to remember to investigate better solutions.

@Fleker
Copy link
Contributor

Fleker commented Jan 12, 2018

Then this change LGTM

@Fleker Fleker merged commit 69bc685 into googlesamples:master Jan 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants