Skip to content

Commit 1848612

Browse files
committed
Password is optional in env
1 parent 1d10b94 commit 1848612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fastapi_app/postgres_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async def create_postgres_engine_from_env(azure_credential=None) -> AsyncEngine:
4141
host=os.environ["POSTGRES_HOST"],
4242
username=os.environ["POSTGRES_USERNAME"],
4343
database=os.environ["POSTGRES_DATABASE"],
44-
password=os.environ["POSTGRES_PASSWORD"],
44+
password=os.environ.get("POSTGRES_PASSWORD"),
4545
sslmode=os.environ.get("POSTGRES_SSL"),
4646
azure_credential=azure_credential,
4747
)

0 commit comments

Comments
 (0)