]> git.ipfire.org Git - oddments/ddns.git/commitdiff
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 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.