Skip to content

Commit ee7369f

Browse files
author
James William Pye
committed
Raise out if it's a ProtocolError as well.
1 parent c00881d commit ee7369f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

postgresql/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def ready_for_connections(self):
494494
if isinstance(x, pg_exc.AuthenticationSpecificationError):
495495
return True
496496
# configuration file error. ya, that's probably not going to change.
497-
if isinstance(x, pg_exc.CFError):
497+
if isinstance(x, (pg_exc.CFError, pg_exc.ProtocolError)):
498498
raise x
499499
if isinstance(x, pg_exc.ServerNotReadyError):
500500
e = x

0 commit comments

Comments
 (0)