Fix error when constructing DownstreamIssue exception
This commit is contained in:
parent
09d8e643c0
commit
85919cbc39
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class RepositoryImageSecurity(RepositoryParamResource):
|
||||||
else:
|
else:
|
||||||
data = secscan_api.get_layer_data(repo_image, include_features=True)
|
data = secscan_api.get_layer_data(repo_image, include_features=True)
|
||||||
except APIRequestFailure as arf:
|
except APIRequestFailure as arf:
|
||||||
raise DownstreamIssue(arf.message)
|
raise DownstreamIssue({'message': arf.message})
|
||||||
|
|
||||||
if data is None:
|
if data is None:
|
||||||
raise NotFound()
|
raise NotFound()
|
||||||
|
|
Reference in a new issue