Fixed error where missing image in fetch request caused error in client
This commit is contained in:
@@ -73,7 +73,7 @@ class ImageEndpoint:
|
||||
logger.debug('Actual MinIO SHA512: {}'.format(actual_minio_hash))
|
||||
if stored_hash != actual_minio_hash:
|
||||
return JsonResponse('Stored hash does not match generated one! '
|
||||
'stored: {} actual: {}'.format(stored_hash, actual_minio_hash), safe=False)
|
||||
'stored: {} actual: {}'.format(stored_hash, actual_minio_hash), status=404, safe=False)
|
||||
|
||||
payload = {
|
||||
'id': identifier,
|
||||
|
||||
Reference in New Issue
Block a user