commit cdd5d6e1305c46c6b8f36af3b6bf9fc2703a35ce parent 44d076fbc4552ffe7ceb2bc4f3904ebec527a27b Author: ThomasV <thomasv@gitorious> Date: Thu, 9 Apr 2015 19:05:11 +0200 fix #1136 Diffstat:
M | lib/network.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/network.py b/lib/network.py @@ -93,7 +93,7 @@ def serialize_proxy(p): return ':'.join([p.get('mode'),p.get('host'), p.get('port')]) def deserialize_proxy(s): - if type(s) != str: + if s is None: return None if s.lower() == 'none': return None