From a64ccc4b3f806ee4e97e510879f8726c150b1656 Mon Sep 17 00:00:00 2001 From: Alexis Jeandet Date: Mon, 9 Aug 2021 21:52:10 +0200 Subject: [PATCH] AMDA: rest fix error, thx CI Signed-off-by: Alexis Jeandet --- speasy/amda/rest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speasy/amda/rest.py b/speasy/amda/rest.py index 44f6df9c..ce0dcdbc 100644 --- a/speasy/amda/rest.py +++ b/speasy/amda/rest.py @@ -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")