Skip to content

Commit 3fd61c2

Browse files
committed
fix: raise HTTP error responses for uploading
1 parent 37d3789 commit 3fd61c2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mapillary_tools/upload_api_v4.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ def upload_chunks(
144144
timeout=UPLOAD_REQUESTS_TIMEOUT,
145145
)
146146

147+
resp.raise_for_status()
148+
147149
payload = resp.json()
148150
try:
149151
return payload["h"]

0 commit comments

Comments
 (0)