fix #1136
This commit is contained in:
parent
44d076fbc4
commit
cdd5d6e130
|
@ -93,7 +93,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 s is None:
|
||||
return None
|
||||
if s.lower() == 'none':
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue