Skip to content

Commit

Permalink
chore: sanitize username password mongodb
Browse files Browse the repository at this point in the history
  • Loading branch information
gersmann committed Jul 20, 2024
1 parent 91c513e commit b986092
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django_mongodb/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def _extract_username_password(url: str) -> tuple[str, str, str]:
netloc=url_components.hostname,
)

return username, unquote(password), url_components.geturl()
return username, unquote(password) if password else None, url_components.geturl()


def sanitize_client_opts(client_opts):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ classifiers = [
"Intended Audience :: Developers",
"Operating System :: OS Independent",
]
version = "0.27.4"
version = "0.27.5"
description = ""
authors = ["gersmann"]
readme = "README.md"
Expand Down

0 comments on commit b986092

Please sign in to comment.