File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
seleniumbase/console_scripts Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -953,17 +953,28 @@ def main():
953
953
from seleniumbase .console_scripts import sb_install
954
954
955
955
need_retry = False
956
+ need_another_retry = False
957
+ retry_msg = "Unable to download driver! Retrying in 3 seconds..."
956
958
try :
957
959
sb_install .main ()
958
960
except Exception as e :
959
961
invalid_run_cmd = constants .Warnings .INVALID_RUN_COMMAND
960
962
if invalid_run_cmd in str (e ):
961
963
raise
962
- print ("\n Driver download failed! Retrying in 3 seconds..." )
964
+ print ()
965
+ print (retry_msg )
963
966
time .sleep (3 )
964
967
print ()
965
968
need_retry = True
966
969
if need_retry :
970
+ try :
971
+ sb_install .main ()
972
+ except Exception :
973
+ print (retry_msg )
974
+ time .sleep (3 )
975
+ print ()
976
+ need_another_retry = True
977
+ if need_another_retry :
967
978
sb_install .main ()
968
979
else :
969
980
show_basic_usage ()
You can’t perform that action at this time.
0 commit comments