Skip to content

Commit 2b60c28

Browse files
committed
Merge pull request #184 from Hexxeh/conn_settings_casing
Correct mistaken use of conn_settings over conn
2 parents fb8fb46 + 3fc629e commit 2b60c28

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
@@ -88,7 +88,7 @@ def _create_connection(conn_settings):
8888

8989
# Handle uri style connections
9090
if "://" in conn.get('host', ''):
91-
uri_dict = uri_parser.parse_uri(conn_settings['host'])
91+
uri_dict = uri_parser.parse_uri(conn['host'])
9292
conn['db'] = uri_dict['database']
9393

9494
return mongoengine.connect(conn.pop('db', 'test'), **conn)

0 commit comments

Comments
 (0)