File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ profile_output.pstat
9
9
callgrind.out.profile
10
10
.venv
11
11
test.py
12
+ test_bruteforce.py
12
13
test.txt
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def scrape(
19
19
20
20
is_logged_into_drexel_connect = False
21
21
failiure_count = 0
22
- reset_period = 1 # seconds
22
+ reset_period = 1 # seconds
23
23
while not is_logged_into_drexel_connect :
24
24
try :
25
25
session = login .login_with_drexel_connect (session )
@@ -33,8 +33,12 @@ def scrape(
33
33
34
34
failiure_count += 1
35
35
if failiure_count > 20 :
36
- raise Exception ("Failed to log in to Drexel Connect after {} attempts" .format (failiure_count ))
37
-
36
+ raise Exception (
37
+ "Failed to log in to Drexel Connect after {} attempts" .format (
38
+ failiure_count
39
+ )
40
+ )
41
+
38
42
reset_period *= 2
39
43
time .sleep (reset_period )
40
44
You can’t perform that action at this time.
0 commit comments