Fixed error where missing image in fetch request caused error in client
This commit is contained in:
@@ -79,6 +79,9 @@ def get_image(identifier):
|
||||
|
||||
try:
|
||||
response = requests.get(baseurl + get_url)
|
||||
if response.status_code != 200:
|
||||
print_response(response)
|
||||
return False
|
||||
payload = response.json()
|
||||
print(payload['id'])
|
||||
print(payload['metadata'])
|
||||
|
||||
Reference in New Issue
Block a user