Skip to content

Commit

Permalink
Fix KeyError DB connect param
Browse files Browse the repository at this point in the history
  • Loading branch information
eternaltyro committed Feb 22, 2024
1 parent e7301b7 commit 6f6bc1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ def get_db_connection_params() -> dict:

connection_params = json.loads(db_credentials)

connection_params["username"] = connection_params["user"]
for k in ("dbinstanceidentifier", "engine", "user"):
connection_params["user"] = connection_params["username"]
for k in ("dbinstanceidentifier", "engine", "username"):
connection_params.pop(k, None)

if None in connection_params.values():
Expand Down

0 comments on commit 6f6bc1e

Please sign in to comment.