From: fujinhua Date: Thu, 18 Jan 2018 02:07:03 +0000 (+0800) Subject: Fix pep8 error of ns terminate X-Git-Tag: v1.1.0~239 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=64e0b71bb0b7602cb6d6ca546067cfe0714a046a;p=vfc%2Fnfvo%2Flcm.git Fix pep8 error of ns terminate Change-Id: I63717387e448c73ded07e99968d2583d2e7b5b47 Issue-ID: VFC-654 Signed-off-by: fujinhua --- diff --git a/lcm/ns/ns_terminate.py b/lcm/ns/ns_terminate.py index 57ba659b..5b93f58d 100644 --- a/lcm/ns/ns_terminate.py +++ b/lcm/ns/ns_terminate.py @@ -53,7 +53,8 @@ class TerminateNsService(threading.Thread): JobUtil.add_job_status(self.job_id, 100, "ns terminate ends.", '') except NSLCMException as e: JobUtil.add_job_status(self.job_id, JOB_ERROR, e.message) - except: + except Exception as ex: + logger.error(ex.message) logger.error(traceback.format_exc()) JobUtil.add_job_status(self.job_id, JOB_ERROR, "ns terminate fail.")