Skip to content

Commit

Permalink
fix: add missing ssl context
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-fully-ported committed Nov 23, 2023
1 parent 2b95611 commit 9b73017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def postgres_path():
ssl_context.load_verify_locations("global-bundle.pem")

con = pg8000.native.Connection(
user=username, password=password, host=host, port=port
user=username, password=password, host=host, port=port, ssl_context=ssl_context
)
for row in con.run("SELECT 1"):
html = f"<pre><code>ping redis with tls: {row}</code></pre>"
Expand Down

0 comments on commit 9b73017

Please sign in to comment.