X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=n2vc%2Fn2vc_juju_conn.py;h=0485e6908058fc12f28cc34da838714789752811;hp=dbd904ccc79758a95689d71d21401f19ee43cd47;hb=979df14bf7d593e6ab983c910133edf4e3feccb3;hpb=df9f72a3f1e7ae1a3bc48fd8e116d8a4ee65824a 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