From 5866e31d4d84f69750ffecfc31974f2f8b7ac211 Mon Sep 17 00:00:00 2001 From: igna Date: Tue, 5 Oct 2021 08:17:00 -0300 Subject: [PATCH] Revert "Update main.py" --- main.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 9af1727..01bddc5 100644 --- a/main.py +++ b/main.py @@ -39,17 +39,14 @@ resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account", "referrer-policy": "strict-origin-when-cross-origin" }) -jsonr = resp.json() -errormsg = jsonr['errors'] - if "login_token" in resp.text: print(f'{Fore.LIGHTGREEN_EX}Account Created\nLogin: {Fore.LIGHTMAGENTA_EX}{username}:{Fore.LIGHTMAGENTA_EX}{password}\nResponse: {resp.text}') pse() elif "That email is already" or "Invalid Email" in resp.text: - print(f'{Fore.LIGHTRED_EX}You got an error! \nError: {errormsg} \nResponse: {resp.text}') + print(f'{Fore.LIGHTRED_EX}You got an error! Please try using a different email\nResponse: {resp.text}') pse() else: - print(f'{Fore.LIGHTRED_EX}You got an error! Try with a different username and/or disable your proxy/VPN. If that doesn\'t work, please open issue on GitHub \nError: {errormsg} \nResponse: {resp.text} \n {resp.status_code}') + print(f'{Fore.LIGHTRED_EX}You got an error! Try with a different username and/or disable your proxy/VPN. If that doesn\'t work, please open issue on GitHub \nResponse: {resp.text} \n {resp.status_code}') pse()