From: David Garcia Date: Wed, 8 Apr 2020 11:23:07 +0000 (+0200) Subject: Raise N2VCNotFound exception in delete_namespace X-Git-Tag: release-v8.0-start~17 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F73%2F8773%2F1;p=osm%2FN2VC.git 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: