Skip to content

Commit

Permalink
Fix cleanup of connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
thatnerdjosh committed Mar 31, 2024
1 parent 8d86551 commit 4490560
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shared/wait-for-psql.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
try:
conn = psycopg2.connect(user=args.db_user, host=args.db_host, port=args.db_port, password=args.db_password, dbname=args.db_name)
error = ''
break
except psycopg2.OperationalError as e:
error = e
else:
finally:
conn.close()
time.sleep(1)

Expand Down

0 comments on commit 4490560

Please sign in to comment.