We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b874ee6 commit 67ba987Copy full SHA for 67ba987
easyai/base.py
@@ -99,8 +99,8 @@ def _extract_result(self, json_result):
99
return APIResult(images, parameters, info)
100
101
def _to_api_result(self, response):
102
- if response.status_code != 200:
103
- raise RuntimeError(response.status_code, response.text())
+ if response.status != 200:
+ raise RuntimeError(response.status, response.text())
104
105
r = response.json()
106
return self._extract_result(r)
0 commit comments