commit | b83968e022229385ef5fe3ddae6c2e521dbe80e6 | [log] [tgz] |
---|---|---|
author | Thomas Jackson <jacksontj.89@gmail.com> | Thu Nov 03 09:45:31 2016 -0700 |
committer | Thomas Jackson <jacksontj.89@gmail.com> | Thu Nov 03 09:45:31 2016 -0700 |
tree | 11b898455cdafab7a1189768754557bc4c4dc6aa | |
parent | f2b265e1e3bdca990dae441ba81db0a1bde1df10 [diff] |
Cleaner error message for unable to bind-- instead of trying to start something which doesn't exist
diff --git a/tsqa/endpoint.py b/tsqa/endpoint.py index 993125b..b3bc506 100644 --- a/tsqa/endpoint.py +++ b/tsqa/endpoint.py
@@ -231,6 +231,8 @@ self.server.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) except Exception as e: self.error = e + self.ready.set() + return # mark it as ready self.ready.set() # serve it