Skip to content

Commit 2a333c5

Browse files
committed
Update error-handling when downloading drivers
1 parent ef39342 commit 2a333c5

File tree

1 file changed

+1
-1
lines changed
  • seleniumbase/console_scripts

1 file changed

+1
-1
lines changed

seleniumbase/console_scripts/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ def main():
953953
sb_install.main()
954954
except Exception as e:
955955
invalid_run_cmd = constants.Warnings.INVALID_RUN_COMMAND
956-
if invalid_run_cmd in e.args[0].split("\n")[0]:
956+
if invalid_run_cmd in str(e):
957957
raise
958958
print("\nDriver download failed! Retrying in 3 seconds...")
959959
time.sleep(3)

0 commit comments

Comments
 (0)