Lightning Wire Labs: Fix comparing HTTP status codes.
[oddments/ddns.git] / src / ddns / providers.py
index f95aa2a..b0b3bf7 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.