diff options
| author | Scott <[email protected]> | 2022-01-12 09:06:29 -0800 |
|---|---|---|
| committer | Scott <[email protected]> | 2022-01-12 09:06:29 -0800 |
| commit | 55a3172e37855f388b9ba0dfc91641a6c9ad1376 (patch) | |
| tree | 01285a4abb59103ec437375d1133f9d00caa1497 /google_assistant.py | |
| parent | ffc4022c1ea2c2a5892150ff55e6c9a9ddbb8756 (diff) | |
Scale back warnings.warn and add stacklevels= where appropriate.
Diffstat (limited to 'google_assistant.py')
| -rw-r--r-- | google_assistant.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/google_assistant.py b/google_assistant.py index 041648c..49c08d3 100644 --- a/google_assistant.py +++ b/google_assistant.py @@ -96,7 +96,7 @@ def ask_google(cmd: str, *, recognize_speech=True) -> GoogleResponse: logger.exception(e) msg = 'Unable to parse Google assistant\'s response.' logger.warning(msg) - warnings.warn(msg) + warnings.warn(msg, stacklevel=3) audio_transcription = None return GoogleResponse( success=success, |
