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