File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
seleniumbase/console_scripts Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 38
38
39
39
import colorama
40
40
import sys
41
+ import time
41
42
from seleniumbase .fixtures import constants
42
43
43
44
colorama .init (autoreset = True )
@@ -64,7 +65,6 @@ def show_usage():
64
65
65
66
66
67
def show_basic_usage ():
67
- import time
68
68
from seleniumbase .console_scripts import logo_helper
69
69
70
70
seleniumbase_logo = logo_helper .get_seleniumbase_logo ()
@@ -945,29 +945,29 @@ def main():
945
945
946
946
if command == "get" or command == "install" :
947
947
if len (command_args ) >= 1 :
948
- import time
949
948
from seleniumbase .console_scripts import sb_install
950
949
951
950
need_retry = False
952
951
need_another_retry = False
953
- retry_msg = "Unable to download driver! Retrying in 3 seconds..."
952
+ retry_msg_1 = "* Unable to download driver! Retrying in 3s..."
953
+ retry_msg_2 = "** Unable to download driver! Retrying in 5s..."
954
954
try :
955
955
sb_install .main ()
956
956
except Exception as e :
957
957
invalid_run_cmd = constants .Warnings .INVALID_RUN_COMMAND
958
958
if invalid_run_cmd in str (e ):
959
959
raise
960
960
print ()
961
- print (retry_msg )
961
+ print (retry_msg_1 )
962
962
time .sleep (3 )
963
963
print ()
964
964
need_retry = True
965
965
if need_retry :
966
966
try :
967
967
sb_install .main ()
968
968
except Exception :
969
- print (retry_msg )
970
- time .sleep (3 )
969
+ print (retry_msg_2 )
970
+ time .sleep (5 )
971
971
print ()
972
972
need_another_retry = True
973
973
if need_another_retry :
You can’t perform that action at this time.
0 commit comments