sql: do not hide connection error when isolate==True (#56011)
This commit is contained in:
parent
61b3de5c6f
commit
f32654b9dd
|
@ -377,7 +377,7 @@ def get_connection(new=False, isolate=False):
|
|||
try:
|
||||
pgconn = psycopg2.connect(**postgresql_cfg)
|
||||
except psycopg2.Error:
|
||||
if new:
|
||||
if new or isolate:
|
||||
raise
|
||||
pgconn = None
|
||||
if isolate:
|
||||
|
|
Loading…
Reference in New Issue