mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-25 00:36:55 +02:00
Fix pre-commit
This commit is contained in:
parent
96bd3101ec
commit
2a1bcc1c7d
2 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -602,7 +602,7 @@ def add_jsonl_file(jsonl_file: str, data: list[dict], encoding: str = None):
|
|||
|
||||
with open(jsonl_file, "a", encoding=encoding) as fout:
|
||||
for json_item in data:
|
||||
fout.write(json.dumps(json_item) + '\n')
|
||||
fout.write(json.dumps(json_item) + "\n")
|
||||
|
||||
|
||||
def read_csv_to_list(curr_file: str, header=False, strip_trail=True):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue