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

Commit b71801b

Browse files
authored
Update login.py
1 parent 0207e34 commit b71801b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Help_functions/login.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,10 @@ def login(server):
9999
r = session.post(URL + "login.html", headers=headers, data=payload)
100100
if "notLoggedIn" in str(r.url):
101101
print(r.url)
102-
print("Program stopped. Check your details and try again.")
102+
print("Login problem. check your nick and password and try again")
103103
raise SystemExit(0)
104+
elif "index.html?act=login" in str(r.url):
105+
print("Logged succesfully")
104106
data.update({server: requests.utils.dict_from_cookiejar(session.cookies)})
105107
write_json(data, cookies_file_name)
106108

0 commit comments

Comments
 (0)