We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fbf8e1 commit 7c44e40Copy full SHA for 7c44e40
labelbox/client.py
@@ -213,8 +213,7 @@ def check_errors(keywords, *path):
213
if internal_server_error is not None:
214
message = internal_server_error.get("message")
215
216
- if message.startswith("Syntax Error") or message.startswith(
217
- "Invite(s) cannot be sent"):
+ if message.startswith(("Syntax Error", "Invite(s) cannot be sent")):
218
raise labelbox.exceptions.InvalidQueryError(message)
219
else:
220
raise labelbox.exceptions.InternalServerError(message)
0 commit comments