From 1ba2d20036988388adf703f4537eac5ae7915ae6 Mon Sep 17 00:00:00 2001 From: liuwei Date: Fri, 11 Apr 2025 10:54:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/sign_in.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/sign_in.py b/db/sign_in.py index 50cc699..0021d77 100644 --- a/db/sign_in.py +++ b/db/sign_in.py @@ -84,7 +84,7 @@ class SignInDB(BaseDBOperator): )) conn.commit() return True - except mysql.connector.Error as e: + except Exception as e: self.LOG.error(f"更新签到记录失败: {e}") return False @@ -106,7 +106,7 @@ class SignInDB(BaseDBOperator): )) conn.commit() return True - except mysql.connector.Error as e: + except Exception as e: self.LOG.error(f"创建签到记录失败: {e}") return False @@ -131,6 +131,6 @@ class SignInDB(BaseDBOperator): )) conn.commit() return True - except mysql.connector.Error as e: + except Exception as e: self.LOG.error(f"更新补签记录失败: {e}") return False \ No newline at end of file