None is unfortunately not an integer

pull/1383/head
Daniel Hokka Zakrisson 13 years ago
parent 23831668c1
commit 06923cd1f6

@ -402,7 +402,9 @@ class Runner(object):
transport = None # use Runner setting
if delegate_to and actual_host in [ '127.0.0.1', 'localhost' ]:
transport = 'local'
conn = self.connector.connect(actual_host, int(actual_port), transport=transport)
if actual_port is not None:
actual_port = int(actual_port)
conn = self.connector.connect(actual_host, actual_port, transport=transport)
if delegate_to:
conn.delegate = host

Loading…
Cancel
Save