From 85919cbc3969a1cb8981c451c50aa040befc6562 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 25 Feb 2016 17:45:49 -0500 Subject: [PATCH] Fix error when constructing DownstreamIssue exception --- endpoints/api/secscan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()