From 08fcd4fbad1cf668eba2988f1b721a826dea02ba Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 15 Oct 2019 15:30:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A02001=20b=5FN=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data_channel/mp2shushu.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/data_channel/mp2shushu.py b/data_channel/mp2shushu.py index 5111157..8a0a986 100644 --- a/data_channel/mp2shushu.py +++ b/data_channel/mp2shushu.py @@ -42,11 +42,14 @@ class Mp2shushu(): def run(self): - log.info("start run") - data = self.get_ad_list() - log.info(f"get data was {data}") - self.write2csv(data) - self.upload2ss() + try: + log.info("start run") + data = self.get_ad_list() + log.info(f"get data was {data}") + self.write2csv(data) + self.upload2ss() + except Exception: + log.error("mp2ss failed", exc_info=True) def main():