Fix pre-commit

This commit is contained in:
didi 2024-08-01 15:38:46 +08:00
parent 96bd3101ec
commit 2a1bcc1c7d
2 changed files with 2 additions and 2 deletions

View file

@ -74,7 +74,7 @@ async def samples_generate(mode: ModeType, result_path: str = "samples.jsonl"):
async def solve_and_write(id: str, mode: ModeType) -> Optional[str]:
try:
sample_dict = await route_generate(mode, id)
except Exception as e:
except Exception:
return id
async with file_lock:
async with aiofiles.open(result_path, mode="a") as f: