Skip to content

Commit ab76944

Browse files
author
Matt Sokoloff
committed
small bug
1 parent 918d489 commit ab76944

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labelbox/schema/bulk_import_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,12 @@ def _validate_ndjson(lines: Iterable[Dict[str, Any]], project) -> None:
342342
try:
343343
annotation = NDAnnotation(data=line)
344344
annotation.validate(data_row_ids, feature_schemas)
345-
uuid = annotation.data.uuid
345+
uuid = str(annotation.data.uuid)
346346
if uuid in uids:
347347
raise labelbox.exceptions.UuidError(
348348
f'{uuid} already used in this import job, '
349349
'must be unique for the project.')
350-
uids.add(str(uuid))
350+
uids.add(uuid)
351351
except (ValidationError, ValueError, KeyError) as e:
352352
raise labelbox.exceptions.NDJsonError(
353353
f"Invalid NDJson on line {idx}") from e

0 commit comments

Comments
 (0)