From 620fa3c11297a0938f25cb867a9a341b50098409 Mon Sep 17 00:00:00 2001 From: David Garcia Date: Wed, 8 Apr 2020 13:23:07 +0200 Subject: [PATCH] Raise N2VCNotFound exception in delete_namespace Change-Id: I57d8ab115b4efdee65af2ca1e951463359ef81de Signed-off-by: David Garcia --- n2vc/n2vc_juju_conn.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.25.1