Skip to content

Commit 7509082

Browse files
committed
Need to reset error if success.
1 parent a231649 commit 7509082

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

15.0/wait-for-psql.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
while (time.time() - start_time) < args.timeout:
2424
try:
2525
conn = psycopg2.connect(user=args.db_user, host=args.db_host, port=args.db_port, password=args.db_password, dbname=args.db_name)
26+
error = ''
2627
conn.close()
2728
break
2829
except psycopg2.OperationalError as e:

16.0/wait-for-psql.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
while (time.time() - start_time) < args.timeout:
2424
try:
2525
conn = psycopg2.connect(user=args.db_user, host=args.db_host, port=args.db_port, password=args.db_password, dbname=args.db_name)
26+
error = ''
2627
conn.close()
2728
break
2829
except psycopg2.OperationalError as e:

17.0/wait-for-psql.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
while (time.time() - start_time) < args.timeout:
2424
try:
2525
conn = psycopg2.connect(user=args.db_user, host=args.db_host, port=args.db_port, password=args.db_password, dbname=args.db_name)
26+
error = ''
2627
conn.close()
2728
break
2829
except psycopg2.OperationalError as e:

0 commit comments

Comments
 (0)