Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 5033ed5

Browse files
authored
Update login.py
1 parent acf2383 commit 5033ed5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Help_functions/login.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ def login(server):
8686
old_cookies = requests.utils.cookiejar_from_dict(data[server])
8787
session.cookies.update(old_cookies)
8888
online_check = session.get(URL + "storage.html", headers=headers)
89+
print(online_check.url)
8990
online_check = "notLoggedIn" in str(online_check.url)
90-
91-
if online_check:
91+
print(online_check)
92+
if online_check or server not in data:
9293
nick, password = get_nick_and_pw(server)
9394
try:
9495
payload = {'login': nick, 'password': password, 'remember': True}

0 commit comments

Comments
 (0)