Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scratchattach/site/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ def login(username, password, *, timeout=10) -> Session:
session_id = str(re.search('"(.*)"', request.headers["Set-Cookie"]).group())
except (AttributeError, Exception):
raise exceptions.LoginFailure(
"Either the provided authentication data is wrong or your network is banned from Scratch.\n\nIf you're using an online IDE (like replit.com) Scratch possibly banned its IP adress. In this case, try logging in with your session id: https://github.com/TimMcCool/scratchattach/wiki#logging-in")
"Either the provided authentication data is wrong or your network is banned from Scratch.\n\nIf you're using an online IDE (like replit.com) Scratch possibly banned its IP address. In this case, try logging in with your session id: https://github.com/TimMcCool/scratchattach/wiki#logging-in")

# Create session object:
with suppress_login_warning():
Expand Down Expand Up @@ -1131,4 +1131,4 @@ def login_by_file(file: FileDescriptorOrPath) -> Session:
Login using a path to a file.
"""
with suppress_login_warning(), open(file, encoding="utf-8") as f:
return login_by_io(f)
return login_by_io(f)