Skip to content

Commit 6db2e7f

Browse files
author
King Long Tse
committed
return bool
1 parent a163ada commit 6db2e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelbox/schema/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def _validate_datetime(string_date: str) -> bool:
315315
for fmt in ("%Y-%m-%d", "%Y-%m-%d %H:%M:%S"):
316316
try:
317317
datetime.strptime(string_date, fmt)
318-
return
318+
return True
319319
except ValueError:
320320
pass
321321
raise ValueError(f"""Incorrect format for: {string_date}.

0 commit comments

Comments
 (0)