commit d6cdc085ea61b9235baf439edce85a0aec05c58a parent 179e98b303b9cf15cdd8c8ed1283aaf8132ef230 Author: ThomasV <thomasv@gitorious> Date: Thu, 11 Jun 2015 10:03:26 +0200 fix #1283 Diffstat:
M | lib/network.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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