Never save port as unicode

This commit is contained in:
Etoh 2014-04-10 20:30:27 +01:00
parent 67d53f640a
commit 73fa0be192

View File

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