]> git.ipfire.org Git - oddments/ddns.git/blobdiff - src/ddns/providers.py
More HTTP status code fixes.
[oddments/ddns.git] / src / ddns / providers.py
index 03201baadee0b3352ac34edc1df6689b8f7b084d..8576c9bccae0838c991478c83b406d079adc56d3 100644 (file)
@@ -195,7 +195,7 @@ class DDNSProviderDHS(DDNSProvider):
                        return
 
                # Handle error codes.
                        return
 
                # Handle error codes.
-               elif response.code == "401":
+               elif response.code == 401:
                        raise DDNSAuthenticationError
 
                # If we got here, some other update error happened.
                        raise DDNSAuthenticationError
 
                # If we got here, some other update error happened.