Skip to content

Commit a85670d

Browse files
author
Len Buckens
committed
do not ignore 'False' connection settings (fixes #127)
1 parent 0c80b20 commit a85670d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_mongoengine/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _create_connection(conn_settings):
3131
connections[conn.get('alias')] = _create_connection(conn)
3232
return connections
3333

34-
conn = dict([(k.lower(), v) for k, v in conn_settings.items() if v])
34+
conn = dict((k.lower(), v) for k, v in conn_settings.items() if v is not None)
3535

3636
if 'replicaset' in conn:
3737
conn['replicaSet'] = conn.pop('replicaset')

0 commit comments

Comments
 (0)