Skip to content

Commit

Permalink
Merge pull request #89 from veintin/main
Browse files Browse the repository at this point in the history
bugfix: when async api fail, raise the right error message
  • Loading branch information
mix1009 authored Jun 17, 2023
2 parents 93487ed + 4cdbaa2 commit 182ec7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webuiapi/webuiapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def _to_api_result(self, response):

async def _to_api_result_async(self, response):
if response.status != 200:
raise RuntimeError(response.status, await response.text)
raise RuntimeError(response.status, await response.text())

r = await response.json()
images = []
Expand Down

0 comments on commit 182ec7d

Please sign in to comment.