Skip to content

Commit cf861f3

Browse files
committed
fix: adjust storage upload error code range
1 parent ff0b999 commit cf861f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openlayer/lib/data/batch_inferences.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def upload_batch_inferences(
6565
object_name=object_name,
6666
presigned_url_response=presigned_url_response,
6767
)
68-
if response.status_code != 200:
68+
if response.status_code >= 300 or response.status_code < 200:
6969
raise ValueError(f"Failed to upload file to storage: {response.text}")
7070

7171
# Notify the backend

0 commit comments

Comments
 (0)