We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c468106 commit 47da8d2Copy full SHA for 47da8d2
testkitbackend/_async/backend.py
@@ -75,6 +75,8 @@ async def close(self):
75
self.drivers,
76
):
77
for key, closable in dict_of_closables.items():
78
+ if not hasattr(closable, "close"): # e.g., ManagedTransaction
79
+ continue
80
try:
81
await closable.close()
82
except (Neo4jError, DriverError, OSError):
testkitbackend/_sync/backend.py
@@ -75,6 +75,8 @@ def close(self):
closable.close()
0 commit comments