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 9ad5ce3 commit 5a4ddb2Copy full SHA for 5a4ddb2
labelbox/client.py
@@ -383,7 +383,8 @@ def upload_data(self,
383
if not file_data or not file_data.get("uploadFile", None):
384
try:
385
errors = response.json().get("errors", [])
386
- error_msg = next(iter(errors), {}).get("message", "Unknown error")
+ error_msg = next(iter(errors), {}).get("message",
387
+ "Unknown error")
388
except Exception as e:
389
error_msg = "Unknown error"
390
raise labelbox.exceptions.LabelboxError(
0 commit comments