Changeset - 68becf4f98c2
[Not reviewed]
default
0 2 0
Laman - 7 years ago 2017-11-18 20:39:23

catching no route to host exception
2 files changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/client.py
Show inline comments
 
@@ -27,7 +27,7 @@ class Connection(BaseConnection):
 

	
 
		try:
 
			self._socket.connect((host,port))
 
		except ConnectionRefusedError as e:
 
		except (ConnectionRefusedError,OSError) as e:
 
			log.exception(e)
 
			print("Couldn't connect to {0}:{1}".format(host,port))
 
			raise FailedConnection()
src/netnode.py
Show inline comments
 
@@ -70,3 +70,4 @@ class NetNode:
 
		log.info("updating hash tree...")
 
		self._tree.batchUpdate(self._newLeaves.items())
 
		self._tree.save(self._treeFile)
 
		log.info("tree updated")
0 comments (0 inline, 0 general)