From fd898828aa9e79ce45a29dfc47e8b66dd69d3cfc Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 8 Jun 2014 16:21:17 +0200 Subject: [PATCH 1/1] Fix crash when no proxy is configured. --- ddns/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddns/system.py b/ddns/system.py index 400d38f..1e1fa0b 100644 --- a/ddns/system.py +++ b/ddns/system.py @@ -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 -- 2.39.2