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)