fix deserialize_proxy. fixes #1309
This commit is contained in:
parent
74d26f5bdc
commit
f894af90d7
|
@ -92,7 +92,7 @@ def serialize_proxy(p):
|
||||||
return ':'.join([p.get('mode'),p.get('host'), p.get('port')])
|
return ':'.join([p.get('mode'),p.get('host'), p.get('port')])
|
||||||
|
|
||||||
def deserialize_proxy(s):
|
def deserialize_proxy(s):
|
||||||
if type(s) != str:
|
if type(s) not in [str, unicode]:
|
||||||
return None
|
return None
|
||||||
if s.lower() == 'none':
|
if s.lower() == 'none':
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue