Fix pep8 error of ns terminate 69/28469/1
authorfujinhua <fu.jinhua@zte.com.cn>
Thu, 18 Jan 2018 02:07:03 +0000 (10:07 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Thu, 18 Jan 2018 02:07:03 +0000 (10:07 +0800)
Change-Id: I63717387e448c73ded07e99968d2583d2e7b5b47
Issue-ID: VFC-654
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/ns/ns_terminate.py

index 57ba659..5b93f58 100644 (file)
@@ -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.")