More HTTP status code fixes.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 Jun 2014 22:12:08 +0000 (00:12 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 Jun 2014 22:12:08 +0000 (00:12 +0200)
src/ddns/providers.py

index 03201ba..8576c9b 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.