Skip to content

Commit c1e81ba

Browse files
committed
Add raise_for_status
1 parent e995e3f commit c1e81ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/superannotate/lib/core/usecases/models.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,8 +763,7 @@ def execute(self):
763763
image_ids=image_ids,
764764
)
765765
if not res.ok:
766-
self._response.errors = res.json().get("error")
767-
return self._response
766+
res.raise_for_status()
768767

769768
success_images = []
770769
failed_images = []

0 commit comments

Comments
 (0)