projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adds unittest.
[python_utils.git]
/
google_assistant.py
diff --git
a/google_assistant.py
b/google_assistant.py
index ec5f6a4c85e17ed0fb2eaaf4f2f22d8ee2ebf300..b0aabf37095ef986b35b726d02700f55d017f78b 100644
(file)
--- a/
google_assistant.py
+++ b/
google_assistant.py
@@
-70,6
+70,7
@@
def ask_google(cmd: str, *, recognize_speech=True) -> GoogleResponse:
audio_transcription: Optional[str] = ""
if r.status_code == 200:
j = r.json()
+ logger.debug(j)
success = bool(j["success"])
response = j["response"] if success else j["error"]
if success: