From cdd5d6e1305c46c6b8f36af3b6bf9fc2703a35ce Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 9 Apr 2015 19:05:11 +0200 Subject: [PATCH] fix #1136 --- lib/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/network.py b/lib/network.py index 525646f4..68749bd8 100644 --- 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