Skip to content

Commit b6f023b

Browse files
committed
set up try except block
1 parent 1304db7 commit b6f023b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/labelbox/tests/integration/test_filtering.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from labelbox import Project
44
from labelbox.exceptions import InvalidQueryError
5-
from labelbox.schema.queue_mode import QueueMode
65
from labelbox import MediaType
76
import time
87

@@ -24,6 +23,8 @@ def project_to_test_where(client, rand_gen):
2423
try:
2524
if len(list(projects)) >= 3:
2625
break
26+
else:
27+
raise TypeError()
2728
except TypeError:
2829
num_retries -= 1
2930
time.sleep(5)

0 commit comments

Comments
 (0)