Skip to content

Commit 6638961

Browse files
committed
Fix bubbling of unwanted exception when fetching RT
1 parent ce201f5 commit 6638961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo4j/io/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ def fetch_routing_table(self, *, address, timeout, database, bookmarks):
937937
try:
938938
new_routing_info = self.fetch_routing_info(address, database,
939939
bookmarks, timeout)
940-
except ServiceUnavailable:
940+
except (ServiceUnavailable, SessionExpired):
941941
new_routing_info = None
942942
if not new_routing_info:
943943
log.debug("Failed to fetch routing info %s", address)

0 commit comments

Comments
 (0)