From 9f28c33a9f7c5e4dedfa966355f82391a7eca723 Mon Sep 17 00:00:00 2001 From: 50-scratch-tabs <197407676+50-scratch-tabs@users.noreply.github.com> Date: Tue, 25 Feb 2025 19:42:47 -0600 Subject: [PATCH 1/3] Fix typo: IP adress -> IP address Signed-off-by: 50-scratch-tabs <197407676+50-scratch-tabs@users.noreply.github.com> --- scratchattach/site/session.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scratchattach/site/session.py b/scratchattach/site/session.py index d3714501..5f01838d 100644 --- a/scratchattach/site/session.py +++ b/scratchattach/site/session.py @@ -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(): @@ -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) \ No newline at end of file + return login_by_io(f) From 77bfebe5ebd017b29bc2cf2d6f19da9a36dec98a Mon Sep 17 00:00:00 2001 From: TheCommCraft <79996518+TheCommCraft@users.noreply.github.com> Date: Wed, 26 Feb 2025 11:02:13 +0100 Subject: [PATCH 2/3] Update session.py Signed-off-by: TheCommCraft <79996518+TheCommCraft@users.noreply.github.com> From 1cd495acdd89955949f020f259705da1805d3d80 Mon Sep 17 00:00:00 2001 From: TheCommCraft <79996518+TheCommCraft@users.noreply.github.com> Date: Wed, 26 Feb 2025 11:03:18 +0100 Subject: [PATCH 3/3] Update session.py Signed-off-by: TheCommCraft <79996518+TheCommCraft@users.noreply.github.com>