Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/tda-generate-token.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def main(api_key, redirect_uri, token_path):
if driver is None:
try:
driver = webdriver.Safari()
except WebDriverException as e:
except Exception as e:
# Currently raises a generic Exception
print('Failed to open Safari, continuing:', e)

# Edge
Expand All @@ -52,7 +53,6 @@ def main(api_key, redirect_uri, token_path):
if driver is None:
print('Failed to open any webdriver. See here for help: ' +
'https://tda-api.readthedocs.io/en/latest/help.html')
return -1

try:
with driver:
Expand Down