From f74b5b6df69b59ad6eded97bea245d2239265b2b Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Thu, 5 Jun 2025 23:26:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91=E4=B8=AD=E7=9A=84=E7=9D=A1?= =?UTF-8?q?=E7=9C=A0=E6=97=B6=E9=97=B4=E4=BB=A5=E4=BC=98=E5=8C=96=E6=80=A7?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/report.py b/report.py index f2a631e..3c184bd 100644 --- a/report.py +++ b/report.py @@ -21,14 +21,15 @@ while True: name_title.append(li['name_title']) link.append(li['link']) ids.append(li['id']) - + time.sleep(30 * 60) try: info = d.process_ticket(name_title, link) for i in ids: db.update_fight_record_status(i, 2, '') db.flush() + except Exception as e: for i in ids: logger.logger.error(f"ID:{i}, e:{e}") db.update_fight_record_status(i, 3, str(e)) - time.sleep(30 * 60) + time.sleep(1 * 60)