Skip to content

Commit 3180612

Browse files
committed
Update core.py
1 parent 9077342 commit 3180612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepstack/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,5 +232,5 @@ def recognise(self, image_bytes: bytes):
232232

233233
self._response = response.json()
234234
if not self._response["success"]:
235-
error = response.json()["error"]
235+
error = self._response["error"]
236236
raise DeepstackException(f"Error from Deepstack: {error}")

0 commit comments

Comments
 (0)