Change abort to NotFound so it is properly formatted into JSON
This commit is contained in:
parent
bde781c98b
commit
f6a9afce90
1 changed files with 1 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Reference in a new issue