This commit is contained in:
ThomasV 2015-04-09 19:05:11 +02:00
parent 44d076fbc4
commit cdd5d6e130
1 changed files with 1 additions and 1 deletions

View File

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