Change abort to NotFound so it is properly formatted into JSON

This commit is contained in:
Joseph Schorr 2015-07-14 11:34:45 +03:00
parent bde781c98b
commit f6a9afce90

View file

@ -27,7 +27,7 @@ class ListRepositoryTags(RepositoryParamResource):
def get(self, args, namespace, repository):
repo = model.get_repository(namespace, repository)
if not repo:
abort(404)
raise NotFound()
def tag_view(tag):
tag_info = {