Skip to content
Snippets Groups Projects
Commit c9bb86ea authored by whuie2's avatar whuie2
Browse files

raise exception if connection fails for use in downstream libraries

parent c4fde121
No related branches found
No related tags found
No related merge requests found
...@@ -295,7 +295,8 @@ def connect(timeout_sec=None, address: str="127.0.0.1", port: int=50100, ttl: in ...@@ -295,7 +295,8 @@ def connect(timeout_sec=None, address: str="127.0.0.1", port: int=50100, ttl: in
connmgr.tcp_endpoint = TcpEndPoint(tcp_local) connmgr.tcp_endpoint = TcpEndPoint(tcp_local)
connmgr.isConnected = True connmgr.isConnected = True
except: except:
print('Connection failed, shutting down...') raise Exception("Connection failed, shutting down...")
#print('Connection failed, shutting down...')
def disconnect(): def disconnect():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment