Raise N2VCNotFound exception in delete_namespace 73/8773/1
authorDavid Garcia <david.garcia@canonical.com>
Wed, 8 Apr 2020 11:23:07 +0000 (13:23 +0200)
committerDavid Garcia <david.garcia@canonical.com>
Wed, 8 Apr 2020 11:23:07 +0000 (13:23 +0200)
Change-Id: I57d8ab115b4efdee65af2ca1e951463359ef81de
Signed-off-by: David Garcia <david.garcia@canonical.com>
n2vc/n2vc_juju_conn.py

index 6b8ac09..bac0f2c 100644 (file)
@@ -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: