From: David Garcia Date: Wed, 8 Apr 2020 11:23:07 +0000 (+0200) Subject: Raise N2VCNotFound exception in delete_namespace X-Git-Tag: v7.1.0rc1~9 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=commitdiff_plain;h=620fa3c11297a0938f25cb867a9a341b50098409 Raise N2VCNotFound exception in delete_namespace Change-Id: I57d8ab115b4efdee65af2ca1e951463359ef81de Signed-off-by: David Garcia --- diff --git a/n2vc/n2vc_juju_conn.py b/n2vc/n2vc_juju_conn.py index 6b8ac09..bac0f2c 100644 --- a/n2vc/n2vc_juju_conn.py +++ b/n2vc/n2vc_juju_conn.py @@ -556,6 +556,8 @@ class N2VCJujuConnector(N2VCConnector): model_name=ns_id, total_timeout=total_timeout ) + except N2VCNotFound: + raise except Exception as e: raise N2VCException(message='Error deleting namespace {} : {}'.format(namespace, e)) else: