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
99callgrind.out.profile
1010.venv
1111test.py
12+ test_bruteforce.py
1213test.txt
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def scrape(
1919
2020 is_logged_into_drexel_connect = False
2121 failiure_count = 0
22- reset_period = 1 # seconds
22+ reset_period = 1 # seconds
2323 while not is_logged_into_drexel_connect :
2424 try :
2525 session = login .login_with_drexel_connect (session )
@@ -33,8 +33,12 @@ def scrape(
3333
3434 failiure_count += 1
3535 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+
3842 reset_period *= 2
3943 time .sleep (reset_period )
4044
You can’t perform that action at this time.
0 commit comments