From: fujinhua Date: Mon, 8 Jan 2018 06:29:00 +0000 (+0800) Subject: Fix pep8 error for vfc-nfvo-lcm X-Git-Tag: v1.1.0~251 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=97183994fb010499602127ff96eb36ac5586f040;p=vfc%2Fnfvo%2Flcm.git Fix pep8 error for vfc-nfvo-lcm Change-Id: I31fd4f1c6b94c2b38356de4a824550892dd8193a Issue-ID: VFC-610 Signed-off-by: fujinhua --- diff --git a/lcm/ns/vnfs/scale_vnfs.py b/lcm/ns/vnfs/scale_vnfs.py index 61d84cf3..fe6c1017 100644 --- a/lcm/ns/vnfs/scale_vnfs.py +++ b/lcm/ns/vnfs/scale_vnfs.py @@ -46,7 +46,8 @@ class NFManualScaleService(threading.Thread): self.do_biz() 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, 'nf scale fail') finally: