Skip to content

Commit d350070

Browse files
author
Matt Sokoloff
committed
catch 503s
1 parent 9e95e3f commit d350070

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

labelbox/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ def upload_data(self,
304304
if response.status_code == 502:
305305
error_502 = '502 Bad Gateway'
306306
raise labelbox.exceptions.InternalServerError(error_502)
307+
elif response.status_code == 503:
308+
raise labelbox.exceptions.InternalServerError(response.text)
307309

308310
try:
309311
file_data = response.json().get("data", None)

0 commit comments

Comments
 (0)