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