diff --git a/lib/network.py b/lib/network.py index 71b920907..e8ca8c7a4 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 type(s) != str: + if type(s) not in [str, unicode]: return None if s.lower() == 'none': return None