Skip to content

Commit 5277ccc

Browse files
author
James William Pye
committed
Supposed to return the new connection.
1 parent 2029dda commit 5277ccc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

postgresql/cluster.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,9 @@ def connect(self, **kw):
434434
"cannot connect if cluster is not running",
435435
creator = self
436436
)
437-
return self.connection(**kw).connect()
437+
x = self.connection(**kw)
438+
x.connect()
439+
return x
438440

439441
def address(self):
440442
"""

0 commit comments

Comments
 (0)