From f5fd5a9c9db95b067ed9699cd7968b7d53e11348 Mon Sep 17 00:00:00 2001 From: LittleBit Date: Thu, 25 Jul 2024 01:23:33 -0500 Subject: [PATCH] Update ENSCardMakerWeb.py --- ENSCardMakerWeb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ENSCardMakerWeb.py b/ENSCardMakerWeb.py index 842f8a4..d38b0cf 100644 --- a/ENSCardMakerWeb.py +++ b/ENSCardMakerWeb.py @@ -14,7 +14,7 @@ def generate_card(user): profilerequest = requests.get(f"http://enstate.rs/u/{user}") if profilerequest.status_code != 200: - return f"Error: Request failed with status code {profilerequest.status_code}", 500 + return f"Error: Request failed with status code {profilerequest.status_code}", profilerequest.status_code profilejson = profilerequest.content.decode("utf-8") profile = json.loads(profilejson)