Skip to content

Commit 0291a13

Browse files
committed
print exceptions in entity
1 parent 3427818 commit 0291a13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pynuodb/entity.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ def find_peer(self, address, port=None):
143143
try:
144144
return self.__peers_by_addr[inet_sock_addr]
145145
except Exception as exception:
146+
print(exception.message)
146147
pass
147148

148149
session = Session(address, port=port, service="Identity")
@@ -157,6 +158,7 @@ def find_peer(self, address, port=None):
157158
self.__peers_by_addr[peer._get_normalized_addr()] = peer
158159
return peer
159160
except Exception as exception:
161+
print(exception.message)
160162
return None
161163

162164
def get_peer(self, agent_id):
@@ -747,6 +749,7 @@ def _remove_process(self, process):
747749
try:
748750
del self.__processes[process.pid]
749751
except Exception as exception:
752+
print(exception.message)
750753
pass
751754

752755
def _get_normalized_addr(self):

0 commit comments

Comments
 (0)