diff --git a/endpoints/api/secscan.py b/endpoints/api/secscan.py index 47197295f..29c938dec 100644 --- a/endpoints/api/secscan.py +++ b/endpoints/api/secscan.py @@ -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()