X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=n2vc%2Fn2vc_juju_conn.py;h=0485e6908058fc12f28cc34da838714789752811;hb=refs%2Fchanges%2F64%2F8864%2F1;hp=dbd904ccc79758a95689d71d21401f19ee43cd47;hpb=f997297d91999b658569252188ba881af1eec336;p=osm%2FN2VC.git diff --git a/n2vc/n2vc_juju_conn.py b/n2vc/n2vc_juju_conn.py index dbd904c..0485e69 100644 --- a/n2vc/n2vc_juju_conn.py +++ b/n2vc/n2vc_juju_conn.py @@ -1288,6 +1288,12 @@ class N2VCJujuConnector(N2VCConnector): total_timeout = 3600 model = await self._juju_get_model(model_name=model_name) + + if not model: + raise N2VCException( + message="Model {} does not exist".format(model_name) + ) + uuid = model.info.uuid # destroy applications