This commit is contained in:
ThomasV 2015-06-11 10:03:26 +02:00
parent 179e98b303
commit d6cdc085ea
1 changed files with 1 additions and 1 deletions

View File

@ -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