From d6cdc085ea61b9235baf439edce85a0aec05c58a Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 11 Jun 2015 10:03:26 +0200 Subject: [PATCH] fix #1283 --- lib/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/network.py b/lib/network.py index 9f47fbda6..71b920907 100644 --- a/lib/network.py +++ b/lib/network.py @@ -92,7 +92,7 @@ def serialize_proxy(p): return ':'.join([p.get('mode'),p.get('host'), p.get('port')]) def deserialize_proxy(s): - if s is None: + if type(s) != str: return None if s.lower() == 'none': return None