Skip to content

Commit aec3793

Browse files
committed
Fix host, port assignment
1 parent f65be52 commit aec3793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def parse(uri):
3838
else:
3939
nodelist = uri.get("nodelist")
4040
if len(nodelist) == 1:
41-
host, port = nodelist[0].split(":")
41+
host, port = nodelist[0]
4242
elif len(nodelist) > 1:
4343
host = ",".join([f"{host}:{port}" for host, port in nodelist])
4444

0 commit comments

Comments
 (0)