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 a94ebaa commit 8d282c1Copy full SHA for 8d282c1
easyai/base.py
@@ -100,14 +100,14 @@ def _extract_result(self, json_result):
100
101
def _to_api_result(self, response):
102
if response.status_code != 200:
103
- raise RuntimeError(response.status_code, response.text)
+ raise RuntimeError(response.status_code, response.text())
104
105
r = response.json()
106
return self._extract_result(r)
107
108
async def _to_api_result_async(self, response):
109
if response.status != 200:
110
- raise RuntimeError(response.status, await response.text)
+ raise RuntimeError(response.status, await response.text())
111
112
r = await response.json()
113
0 commit comments