An attempt 3

This commit is contained in:
Alexey Masterov
2025-07-17 18:53:09 +02:00
parent 74626b94a8
commit 73ed7ade70

View File

@@ -523,7 +523,7 @@ class NeonProject:
self, self.neon_api.get_branch_details(self.id, new_branch_def["branch"]["id"])
)
if new_branch.connection_parameters is None:
raise RuntimeError(f"Neon branch {new_branch.id} does not have connection parameters")
raise RuntimeError(f"Neon branch {new_branch.id} does not have connection parameters {new_branch.endpoints}")
with psycopg2.connect(
host=new_branch.connection_parameters["host"],
port=5432,