This commit is contained in:
subin
2025-01-05 02:56:01 +05:30
parent a71e7120cb
commit 8a008c229d
+1 -1
View File
@@ -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")