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