Skip to content

Commit 296f2a5

Browse files
authored
fix for data_report_dict not defined (#212)
* fix for data_report_dict not defined * Update files.py
1 parent 2a96da0 commit 296f2a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/together/utils/files.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def check_file(
5858
else:
5959
report_dict["file_size"] = file_size
6060

61+
data_report_dict = {}
6162
if file.suffix == ".jsonl":
6263
report_dict["filetype"] = "jsonl"
6364
data_report_dict = _check_jsonl(file)
@@ -72,6 +73,7 @@ def check_file(
7273
report_dict["is_check_passed"] = False
7374

7475
report_dict.update(data_report_dict)
76+
7577
return report_dict
7678

7779

0 commit comments

Comments
 (0)