Ensure error is raised when URI database name is parsed as 'None'. #43

Merged
merged 1 commit into from Jan 17, 2015

Projects

None yet

2 participants

@jeffbr13
Contributor

You get a rather cryptic error when the MONGO_URI config value is missing a database path because uri_parser.parse_uri(app.config[key'URI']) returns {…, "database": None, …} and PyMongo.init_app(…) only checks for the non-existence of the "database" key.

This patch fixes that.

@dcrosta dcrosta merged commit dc37afb into dcrosta:master Jan 17, 2015

1 check failed

continuous-integration/travis-ci The Travis CI build could not complete due to an error
Details
@dcrosta
Owner
dcrosta commented Jan 17, 2015

Nice catch, thanks for the fix.

@dcrosta
Owner
dcrosta commented Apr 9, 2015

This is released in version 0.3.1 -- Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment