diff --git a/src/aiy/assistant/auth_helpers.py b/src/aiy/assistant/auth_helpers.py index c0f2757f..a27744e3 100644 --- a/src/aiy/assistant/auth_helpers.py +++ b/src/aiy/assistant/auth_helpers.py @@ -72,7 +72,7 @@ def _credentials_flow_interactive(client_secrets_path): # Use chromium-browser by default. Raspbian Stretch uses Epiphany by # default but that seems to cause issues: # https://github.com/google/aiyprojects-raspbian/issues/269 - webbrowser.register('chromium-browser', None, webbrowser.Chrome('chromium-browser'), -1) + webbrowser.register('chromium-browser', None, webbrowser.Chrome('chromium-browser'), preferred=True) credentials = flow.run_local_server() else: credentials = flow.run_console()