Never save port as unicode
This commit is contained in:
parent
67d53f640a
commit
73fa0be192
@ -153,7 +153,10 @@ class ConfigurationGetter(object):
|
||||
try:
|
||||
port = int(port)
|
||||
except ValueError:
|
||||
pass
|
||||
try:
|
||||
port = port.encode('ascii', 'ignore')
|
||||
except:
|
||||
port = ""
|
||||
return host, port
|
||||
|
||||
def _checkForPortableFile(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user