Skip to content

Commit 7c44e40

Browse files
author
Matt Sokoloff
committed
minor change
1 parent 0fbf8e1 commit 7c44e40

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

labelbox/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ def check_errors(keywords, *path):
213213
if internal_server_error is not None:
214214
message = internal_server_error.get("message")
215215

216-
if message.startswith("Syntax Error") or message.startswith(
217-
"Invite(s) cannot be sent"):
216+
if message.startswith(("Syntax Error", "Invite(s) cannot be sent")):
218217
raise labelbox.exceptions.InvalidQueryError(message)
219218
else:
220219
raise labelbox.exceptions.InternalServerError(message)

0 commit comments

Comments
 (0)