From: fujinhua Date: Mon, 4 Dec 2017 07:15:02 +0000 (+0800) Subject: Refactor ns terminate of vfc-nfvo-lcm X-Git-Tag: v1.1.0~263 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=677cd84bc57996ff551d2a960c6a9f6d433908d8;p=vfc%2Fnfvo%2Flcm.git Refactor ns terminate of vfc-nfvo-lcm Change-Id: I396293b880a3f8744d09696019e06a9b38dcacb3 Issue-ID: VFC-608 Signed-off-by: fujinhua --- diff --git a/lcm/ns/vnfs/terminate_nfs.py b/lcm/ns/vnfs/terminate_nfs.py index 02dcc027..89d6de20 100644 --- a/lcm/ns/vnfs/terminate_nfs.py +++ b/lcm/ns/vnfs/terminate_nfs.py @@ -57,9 +57,9 @@ class TerminateVnfs(threading.Thread): self.delete_data_from_db() except NSLCMException as e: self.set_job_err(e.message) - except Exception: + except Exception as ex: logger.error(traceback.format_exc()) - self.set_job_err('unexpected exception') + self.set_job_err(ex.message) def set_vnf_status(self, vnf_inst_info): vnf_status = vnf_inst_info.status