Revert "Fix a potential issue in ioucon."

This reverts commit 08cb3de683.
This commit is contained in:
grossmj 2014-05-20 10:28:59 -06:00
parent 08cb3de683
commit 77b845a17f

View File

@ -411,11 +411,8 @@ 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:
if e.errno == 111: # connection refused raise NetioError("Couldn't connect to socket {}: {}"
log.debug("Waiting to connect to {}".format(self.ttyS)) .format(self.ttyS, e))
time.sleep(RETRY_DELAY)
else:
raise NetioError("Couldn't connect to socket {}: {}".format(self.ttyS, e))
else: else:
break break