Skip to content

Commit 96d6c4e

Browse files
committed
set up try except block
1 parent b14c089 commit 96d6c4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libs/labelbox/tests/integration/test_filtering.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from labelbox.exceptions import InvalidQueryError
55
from labelbox import MediaType
66
import time
7+
import logging
78

89

910
@pytest.fixture
@@ -21,11 +22,12 @@ def project_to_test_where(client, rand_gen):
2122
while (num_retries > 0):
2223
projects = client.get_projects()
2324
try:
25+
logging.log(level=2, msg=f"{len(list(projects))}")
2426
if len(list(projects)) >= 3:
2527
break
2628
else:
2729
raise TypeError()
28-
except TypeError:
30+
except:
2931
num_retries -= 1
3032
time.sleep(5)
3133

0 commit comments

Comments
 (0)