We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7572e67 commit ffe9afdCopy full SHA for ffe9afd
roboflow/util/folderparser.py
@@ -215,12 +215,14 @@ def _loadAnnotations(folder, annotations):
215
def _read_jsonl(path):
216
data = []
217
with open(path) as file:
218
- for line in file:
+ for linenum, line in enumerate(file, 1):
219
+ if not line:
220
+ continue
221
try:
222
json_object = json.loads(line.strip())
223
data.append(json_object)
224
except json.JSONDecodeError:
- print(f"Warning: Skipping invalid JSON line in {path}")
225
+ print(f"Warning: Skipping invalid JSON line in {path}:{linenum}")
226
return data
227
228
0 commit comments