Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

Commit c0d3a38

Browse files
author
Orange Peeler
committed
Fixed webbrowser.register arguments to work with Python 3.7
1 parent adb1fa4 commit c0d3a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aiy/assistant/auth_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def _credentials_flow_interactive(client_secrets_path):
7272
# Use chromium-browser by default. Raspbian Stretch uses Epiphany by
7373
# default but that seems to cause issues:
7474
# https://github.com/google/aiyprojects-raspbian/issues/269
75-
webbrowser.register('chromium-browser', None, webbrowser.Chrome('chromium-browser'), -1)
75+
webbrowser.register('chromium-browser', None, webbrowser.Chrome('chromium-browser'), preferred=True)
7676
credentials = flow.run_local_server()
7777
else:
7878
credentials = flow.run_console()

0 commit comments

Comments
 (0)