fix simple typo
This commit is contained in:
parent
f6ba1ad788
commit
1f7272d139
@ -123,9 +123,9 @@ def get_connection(alias=DEFAULT_CONNECTION_NAME, reconnect=False):
|
|||||||
conn_settings.pop('replicaSet', None)
|
conn_settings.pop('replicaSet', None)
|
||||||
|
|
||||||
if async:
|
if async:
|
||||||
connection_class = MongoReplicaSetClient
|
|
||||||
else:
|
|
||||||
connection_class = motor.MotorReplicaSetClient
|
connection_class = motor.MotorReplicaSetClient
|
||||||
|
else:
|
||||||
|
connection_class = MongoReplicaSetClient
|
||||||
|
|
||||||
try:
|
try:
|
||||||
connection = None
|
connection = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user