From 2d37c4a4771d3ed159a6ba602e01e3044c014fb8 Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 13 Aug 2019 14:53:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A9=BA=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=94=9F=E6=88=90=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mytask/tasks_1016.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mytask/tasks_1016.py b/mytask/tasks_1016.py index aabb653..daf57d1 100644 --- a/mytask/tasks_1016.py +++ b/mytask/tasks_1016.py @@ -36,11 +36,10 @@ class TGA_event(GetFromTga): temp = {} try: temp['id'], temp['num'] = line - if temp: - log.info(f"will write {temp} 2 tga!") - self.write_tga_files(temp) except Exception: log.error(f"write {line} 2 tga failed!", exc_info=True) + if temp: + self.write_tga_files(temp) def event_shop_new(self): sql = f"""select @@ -67,7 +66,6 @@ class TGA_event(GetFromTga): try: temp['id'], temp['num'] = line if temp: - log.info(f"will write {temp} 2 tga!") self.write_tga_files(temp) except Exception: log.error(f"write {line} 2 tga failed!", exc_info=True)