Skip to content

Commit

Permalink
Resolved KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
losintikfos committed Jun 8, 2016
1 parent 0c25fe7 commit dee7e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_mongoengine/connection.py
Expand Up @@ -276,7 +276,7 @@ def _resolve_settings(conn_setting, removePass=True):
if uri_dict['options'] and uri_dict['options']['replicaset']:
resolved['replicaSet'] = uri_dict['options']['replicaset']

if removePass:
if removePass and password:
resolved.pop('password')

return resolved
Expand Down

0 comments on commit dee7e3b

Please sign in to comment.