Skip to content

Commit

Permalink
Merge pull request ScQ-Cloud#92 from beizhansl/master
Browse files Browse the repository at this point in the history
Exception handling
  • Loading branch information
Zhaoyilunnn committed Sep 26, 2023
2 parents 8d02900 + 080a816 commit 96910f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quafu/users/userapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _get_backends_info(self):
url = self.url + self.backends_api
response = requests.post(url=url, headers=headers)
backends_info = response.json()
if response.status_code == 201:
if backends_info['status'] == 201:
raise UserError(backends_info["message"])
else:
return backends_info["data"]
Expand Down

0 comments on commit 96910f3

Please sign in to comment.