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 0c80b20 commit a85670dCopy full SHA for a85670d
flask_mongoengine/__init__.py
@@ -31,7 +31,7 @@ def _create_connection(conn_settings):
31
connections[conn.get('alias')] = _create_connection(conn)
32
return connections
33
34
- conn = dict([(k.lower(), v) for k, v in conn_settings.items() if v])
+ conn = dict((k.lower(), v) for k, v in conn_settings.items() if v is not None)
35
36
if 'replicaset' in conn:
37
conn['replicaSet'] = conn.pop('replicaset')
0 commit comments