Skip to content

Commit 288cc3b

Browse files
committed
formatted with ruff
1 parent 9526292 commit 288cc3b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ profile_output.pstat
99
callgrind.out.profile
1010
.venv
1111
test.py
12+
test_bruteforce.py
1213
test.txt

src/scrape.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)