This commit is contained in:
Jamal Chahir 2024-09-28 11:47:18 +01:00 committed by GitHub
commit 9135c39401
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,6 +30,9 @@ async def main():
json_data = await response.json()
data = json_data.get('data')
count = len(data) if data else 0
print(f"Found {count} images..")
if not data:
raise Exception('⛔ JSON does not have a "data" property at its root.')