We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f77a633 commit cec2076Copy full SHA for cec2076
django_mongodb/utils.py
@@ -38,7 +38,8 @@ def parse(uri, **kwargs):
38
else:
39
# If the fqdn is not present, this is a standard URI and the host and
40
# port are in the nodelist.
41
- host, port = [f"{node[0]}:{node[1]}" for node in uri["nodelist"]][0].split(":") # noqa: RUF015
+ nodelist = [f"{node[0]}:{node[1]}" for node in uri["nodelist"]]
42
+ host, port = nodelist[0].split(":")
43
44
settings_dict = {
45
"ENGINE": "django_mongodb",
0 commit comments