projects
/
oddments
/
ddns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix crash when no proxy is configured.
[oddments/ddns.git]
/
ddns
/
system.py
diff --git
a/ddns/system.py
b/ddns/system.py
index
400d38f
..
1e1fa0b
100644
(file)
--- 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.
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
proxy = proxy[7:]
return proxy