Skip to content

Commit

Permalink
fix: adjust storage upload error code range
Browse files Browse the repository at this point in the history
  • Loading branch information
whoseoyster committed Oct 7, 2024
1 parent ff0b999 commit cf861f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openlayer/lib/data/batch_inferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def upload_batch_inferences(
object_name=object_name,
presigned_url_response=presigned_url_response,
)
if response.status_code != 200:
if response.status_code >= 300 or response.status_code < 200:
raise ValueError(f"Failed to upload file to storage: {response.text}")

# Notify the backend
Expand Down

0 comments on commit cf861f3

Please sign in to comment.