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

Commit

Permalink
Fixed webbrowser.register arguments to work with Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Orange Peeler committed Aug 23, 2020
1 parent adb1fa4 commit c0d3a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aiy/assistant/auth_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c0d3a38

Please sign in to comment.