]> git.ipfire.org Git - oddments/ddns.git/blobdiff - ddns/system.py
Fix crash when no proxy is configured.
[oddments/ddns.git] / ddns / system.py
index 400d38f23c80095133cc0073ab65e5e822a3daec..1e1fa0b867ffffda2c847085081acb845021ad27 100644 (file)
@@ -48,7 +48,7 @@ class DDNSSystem(object):
                proxy = self.core.settings.get("proxy")
 
                # Strip http:// at the beginning.
-               if proxy.startswith("http://"):
+               if proxy and proxy.startswith("http://"):
                        proxy = proxy[7:]
 
                return proxy