X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=google_assistant.py;h=b92f443d6744882ddaa56418ed992b39b33c8568;hb=4198f76987184c774135860bfb22432c69d0714d;hp=041648ca4f15e9db4ce1b1df2862d948ec450325;hpb=b454ad295eb3024a238d32bf2aef1ebc3c496b44;p=python_utils.git diff --git a/google_assistant.py b/google_assistant.py index 041648c..b92f443 100644 --- a/google_assistant.py +++ b/google_assistant.py @@ -21,14 +21,14 @@ parser.add_argument( type=str, default="http://kiosk.house:3000", metavar="URL", - help="How to contact the Google Assistant bridge" + help="How to contact the Google Assistant bridge", ) parser.add_argument( "--google_assistant_username", type=str, metavar="GOOGLE_ACCOUNT", default="scott.gasch", - help="The user account for talking to Google Assistant" + help="The user account for talking to Google Assistant", ) @@ -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,