Skip to content

Commit

Permalink
single quotes inside f string
Browse files Browse the repository at this point in the history
  • Loading branch information
johndonor3 committed Sep 4, 2024
1 parent de54807 commit 7c9e148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sdssdb/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_database_uri(
else:
auth: str = f"{user}:{password}@"

host_port: str = f"{host or ""}" if port is None else f"{host or ""}:{port}"
host_port: str = f"{host or ''}" if port is None else f"{host or ''}:{port}"

if auth == "" and host_port == "":
return f"postgresql://{dbname}"
Expand Down

0 comments on commit 7c9e148

Please sign in to comment.