Fix pep8 error for vfc-nfvo-lcm 07/27607/1
authorfujinhua <fu.jinhua@zte.com.cn>
Mon, 8 Jan 2018 06:29:00 +0000 (14:29 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Mon, 8 Jan 2018 06:29:00 +0000 (14:29 +0800)
Change-Id: I31fd4f1c6b94c2b38356de4a824550892dd8193a
Issue-ID: VFC-610
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/ns/vnfs/scale_vnfs.py

index 61d84cf..fe6c101 100644 (file)
@@ -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: