1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 09:18:08 +00:00

Fix a potential issue in ioucon.

This commit is contained in:
grossmj 2014-05-19 22:21:15 -06:00
parent 119eb635cf
commit 08cb3de683

View File

@ -411,8 +411,11 @@ class IOU(Router):
log.debug("Waiting to connect to {}".format(self.ttyS)) log.debug("Waiting to connect to {}".format(self.ttyS))
time.sleep(RETRY_DELAY) time.sleep(RETRY_DELAY)
except Exception as e: except Exception as e:
raise NetioError("Couldn't connect to socket {}: {}" if e.errno == 111: # connection refused
.format(self.ttyS, e)) log.debug("Waiting to connect to {}".format(self.ttyS))
time.sleep(RETRY_DELAY)
else:
raise NetioError("Couldn't connect to socket {}: {}".format(self.ttyS, e))
else: else:
break break