From 6d412c726bd8aee7d70b0ac0645977880ee7cff6 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 30 Jan 2014 17:44:12 -0500 Subject: [PATCH] Change the image 404 to a flask_abort to avoid logging it --- endpoints/registry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/endpoints/registry.py b/endpoints/registry.py index 27c98d44e..e232b4c67 100644 --- a/endpoints/registry.py +++ b/endpoints/registry.py @@ -2,7 +2,7 @@ import logging import json from flask import (make_response, request, session, Response, redirect, - Blueprint) + Blueprint, abort as flask_abort) from functools import wraps from datetime import datetime from time import time @@ -255,7 +255,7 @@ def get_image_json(namespace, repository, image_id, headers): data = store.get_content(store.image_json_path(namespace, repository, image_id)) except IOError: - abort(404, 'Image %(image_id)%s not found', issue='unknown-image', image_id=image_id) + flask_abort(404) try: size = store.get_size(store.image_layer_path(namespace, repository,