From 8a008c229db70fb89ea4828a30a7e0b5807f0678 Mon Sep 17 00:00:00 2001 From: subin Date: Sun, 5 Jan 2025 02:56:01 +0530 Subject: [PATCH] update --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index f2b1dad..d049e53 100644 --- a/utils.py +++ b/utils.py @@ -23,7 +23,7 @@ def fetch_image(url, payload, headers, timeout=3, interval=0.5): # Make the GET request response = requests.request("GET", url, headers=headers, json=payload) - if response.code == 200: + if response.status_code == 200: data = response.json() # Check if the response has the expected data (e.g., status is not "pending")