Skip to content

Commit d2a0909

Browse files
rllinrllin
authored andcommitted
print response when fail
1 parent 621edef commit d2a0909

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

labelbox/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ def check_errors(keywords, *path):
175175
raise labelbox.exceptions.LabelboxError("Unknown error: %s" %
176176
str(errors))
177177

178+
if not response.get('data'):
179+
print('response', response)
180+
raise
178181
return response["data"]
179182

180183
def upload_file(self, path: str) -> str:

0 commit comments

Comments
 (0)