File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "python.testing.pytestArgs" : [
3
+ " src"
4
+ ],
5
+ "python.testing.unittestEnabled" : false ,
6
+ "python.testing.pytestEnabled" : true
7
+ }
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ def scrape(
21
21
failiure_count = 0
22
22
reset_period = 1 # seconds
23
23
while not is_logged_into_drexel_connect :
24
+ reset_period *= 2
24
25
try :
25
26
session = login .login_with_drexel_connect (session )
26
27
if "shib_idp_session" in session .cookies :
@@ -29,7 +30,7 @@ def scrape(
29
30
except Exception :
30
31
print ("Error logging in to Drexel Connect: " )
31
32
print (traceback .format_exc ())
32
- print ("Trying again..." )
33
+ print (f "Trying again in { reset_period } seconds ..." )
33
34
34
35
failiure_count += 1
35
36
if failiure_count > 20 :
@@ -39,7 +40,6 @@ def scrape(
39
40
)
40
41
)
41
42
42
- reset_period *= 2
43
43
time .sleep (reset_period )
44
44
45
45
data : dict [str , dict [str , Any ]] = {}
You can’t perform that action at this time.
0 commit comments