Skip to content

Commit 182ec7d

Browse files
authored
Merge pull request mix1009#89 from veintin/main
bugfix: when async api fail, raise the right error message
2 parents 93487ed + 4cdbaa2 commit 182ec7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: webuiapi/webuiapi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def _to_api_result(self, response):
201201

202202
async def _to_api_result_async(self, response):
203203
if response.status != 200:
204-
raise RuntimeError(response.status, await response.text)
204+
raise RuntimeError(response.status, await response.text())
205205

206206
r = await response.json()
207207
images = []

0 commit comments

Comments
 (0)