From 1176c145328a61f314ccba63c4083d2d1990d4dc Mon Sep 17 00:00:00 2001 From: Malarvizhi Paramasivam Date: Mon, 17 May 2021 11:40:15 +0530 Subject: Fix sonar issues Issue-ID: OPTFRA-946 Signed-off-by: Malarvizhi Paramasivam Change-Id: I6ccf61b6e07187f879d52c4c3b9f53b4188adf4a Signed-off-by: Malarvizhi Paramasivam --- osdf/utils/interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'osdf/utils/interfaces.py') diff --git a/osdf/utils/interfaces.py b/osdf/utils/interfaces.py index 93264b2..a0a564e 100644 --- a/osdf/utils/interfaces.py +++ b/osdf/utils/interfaces.py @@ -104,7 +104,7 @@ class RestClient(object): res_code = str(res.status_code) if not any(res_code.startswith(x) for x in map(str, ok_codes)): - raise res.raise_for_status() + raise BaseException(res.raise_for_status()) if raw_response: return res -- cgit 1.2.3-korg