We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01bcc9a commit 3a093f3Copy full SHA for 3a093f3
1 file changed
postgresql/temporal.py
@@ -124,9 +124,10 @@ def init(self,
124
logfile = None,
125
)
126
127
- # Configure
128
- self.cluster_port = find_available_port()
129
- if self.cluster_port is None:
+ try:
+ self.cluster_port = find_available_port()
+ except:
130
+ # Rely on chain.
131
raise ClusterError(
132
'could not find a port for the test cluster on localhost',
133
creator = cluster
0 commit comments