]> git.ipfire.org Git - oddments/ddns.git/blobdiff - src/ddns/providers.py
Lightning Wire Labs: Fix comparing HTTP status codes.
[oddments/ddns.git] / src / ddns / providers.py
index f95aa2acb52159da023b5e6edb40491c9eddf4fa..b0b3bf7ddcab65acbcc813db6c4ab833144b9682 100644 (file)
@@ -281,9 +281,9 @@ class DDNSProviderLightningWireLabs(DDNSProvider):
                        return
 
                # Handle error codes.
-               if response.code == "403":
+               if response.code == 403:
                        raise DDNSAuthenticationError
-               elif response.code == "400":
+               elif response.code == 400:
                        raise DDNSRequestError
 
                # If we got here, some other update error happened.