summaryrefslogtreecommitdiffstats
path: root/onap-dcae-cbs-docker-client/onap_dcae_cbs_docker_client
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2020-04-27 10:25:36 +0100
committerefiacor <fiachra.corcoran@est.tech>2020-04-27 23:19:37 +0100
commit1d2990b9b712a019bf553863a847eff90066f58a (patch)
tree44c3637ec87ef258496228906fcf48c152620960 /onap-dcae-cbs-docker-client/onap_dcae_cbs_docker_client
parentf6fa7fa631bd7c860347c453b0412120c38718f7 (diff)
CBS client ConnectionError exc fix
Signed-off-by: efiacor <fiachra.corcoran@est.tech> Issue-ID: DCAEGEN2-2213 Change-Id: I1cb52b67bdc1609e53a519ae7d6790d7b631f46e
Diffstat (limited to 'onap-dcae-cbs-docker-client/onap_dcae_cbs_docker_client')
-rw-r--r--onap-dcae-cbs-docker-client/onap_dcae_cbs_docker_client/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/onap-dcae-cbs-docker-client/onap_dcae_cbs_docker_client/client.py b/onap-dcae-cbs-docker-client/onap_dcae_cbs_docker_client/client.py
index c1193d9..d02b1d1 100644
--- a/onap-dcae-cbs-docker-client/onap_dcae_cbs_docker_client/client.py
+++ b/onap-dcae-cbs-docker-client/onap_dcae_cbs_docker_client/client.py
@@ -66,8 +66,8 @@ def _get_path(path):
res.text,
)
raise CantGetConfig(res.status_code, res.text)
- except requests.exceptions.ConnectionError: # this is thrown if requests.get cant even connect to the endpoint
- raise CBSUnreachable()
+ except requests.exceptions.ConnectionError as e: # this is thrown if requests.get cant even connect to the endpoint
+ raise CBSUnreachable(e)
#########