From c0d3a38724d26ba7fe7ab34e900ae38920162d4c Mon Sep 17 00:00:00 2001 From: Orange Peeler Date: Sat, 22 Aug 2020 20:49:17 -0500 Subject: [PATCH] Fixed webbrowser.register arguments to work with Python 3.7 --- src/aiy/assistant/auth_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()