Skip to content

Commit

Permalink
AMDA: rest fix error, thx CI
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
  • Loading branch information
jeandet committed Aug 9, 2021
1 parent 38400fe commit a64ccc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speasy/amda/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def token(self) -> str:
"""
# url = "{0}/php/rest/auth.php?".format(self.server_url)
r = http.get(self.request_url(Endpoint.AUTH))
if r.status_code is 200 and r.ok:
if r.status_code == 200 and r.ok:
return r.text.strip()
else:
raise RuntimeError("Failed to get auth token")
Expand Down

0 comments on commit a64ccc4

Please sign in to comment.