fix #1283
This commit is contained in:
parent
179e98b303
commit
d6cdc085ea
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue