diff --git a/arknights_mower/solvers/report.py b/arknights_mower/solvers/report.py index eca3dbbb5..870324595 100644 --- a/arknights_mower/solvers/report.py +++ b/arknights_mower/solvers/report.py @@ -136,7 +136,7 @@ def has_record(self): if os.path.exists(self.record_path) is False: logger.debug("基报不存在") return False - df = pd.read_csv(self.record_path, encoding='gbk') + df = pd.read_csv(self.record_path, encoding='gbk', on_bad_lines='skip') for item in df.iloc: if item[0] == self.date: return True @@ -159,5 +159,3 @@ def get_report_data(): print(data) except PermissionError: logger.info("report.csv正在被占用") - - diff --git a/arknights_mower/solvers/skland.py b/arknights_mower/solvers/skland.py index ce13fc6cb..c3079772f 100644 --- a/arknights_mower/solvers/skland.py +++ b/arknights_mower/solvers/skland.py @@ -204,7 +204,7 @@ def has_record(self, phone: str): if os.path.exists(self.record_path) is False: logger.debug("无森空岛记录") return False - df = pd.read_csv(self.record_path, header=None, encoding='gbk') + df = pd.read_csv(self.record_path, header=None, encoding='gbk',on_bad_lines='skip') for item in df.iloc: if item[0] == datetime.datetime.now().strftime("%Y/%m/%d"): if item[1].astype(str) == phone: