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 3ba447a commit 0150b53Copy full SHA for 0150b53
flask_mongoengine/connection.py
@@ -28,7 +28,7 @@ def _sanitize_settings(settings):
28
resolved_settings['db'] = uri_dict['database']
29
30
# Add a default name param or use the "db" key if exists
31
- if 'db' in resolved_settings:
+ if resolved_settings.get('db'):
32
resolved_settings['name'] = resolved_settings.pop('db')
33
else:
34
resolved_settings['name'] = 'test'
0 commit comments