Fix error when constructing DownstreamIssue exception

This commit is contained in:
Joseph Schorr 2016-02-25 17:45:49 -05:00
parent 09d8e643c0
commit 85919cbc39

View file

@ -59,7 +59,7 @@ class RepositoryImageSecurity(RepositoryParamResource):
else:
data = secscan_api.get_layer_data(repo_image, include_features=True)
except APIRequestFailure as arf:
raise DownstreamIssue(arf.message)
raise DownstreamIssue({'message': arf.message})
if data is None:
raise NotFound()