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

Commit 98dd277

Browse files
committed
google-assistant-sdk/pushtotalk: fix import boilerplate for python3.6
Fixes #160. In Python3.6, the error changed (https://hg.python.org/cpython/rev/c4e4886c6052) from `SystemError` to `ImportError` so we need to catch both.
1 parent 79f7e58 commit 98dd277

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google-assistant-sdk/googlesamples/assistant/grpc/pushtotalk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
audio_helpers,
4141
device_helpers
4242
)
43-
except SystemError:
43+
except (SystemError, ImportError):
4444
import assistant_helpers
4545
import audio_helpers
4646
import device_helpers

google-assistant-sdk/googlesamples/assistant/grpc/textinput.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from . import (
3333
assistant_helpers,
3434
)
35-
except SystemError:
35+
except (SystemError, ImportError):
3636
import assistant_helpers
3737

3838

0 commit comments

Comments
 (0)