Skip to content

Commit

Permalink
Fix bug with auto_open_browser kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
parafoxia committed Feb 10, 2024
1 parent 2e17e6b commit e850e9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion analytix/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,9 @@ def in_wsl() -> bool:

super().__init__(secrets_file, scopes=scopes)
self._ws_port = ws_port
self._auto_open_browser = not in_wsl() if auto_open_browser is None else True
self._auto_open_browser = (
not in_wsl() if auto_open_browser is None else auto_open_browser
)

self._tokens_file = Path(tokens_file)
if self._tokens_file.suffix != ".json":
Expand Down

0 comments on commit e850e9a

Please sign in to comment.