From: Michael Tremer Date: Sun, 8 Jun 2014 14:21:17 +0000 (+0200) Subject: Fix crash when no proxy is configured. X-Git-Tag: 001~83 X-Git-Url: http://git.ipfire.org/?p=ddns.git;a=commitdiff_plain;h=fd898828aa9e79ce45a29dfc47e8b66dd69d3cfc;ds=sidebyside Fix crash when no proxy is configured. --- 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