Fail fast when db name is invalid

Without this commit save operation on first document would fail instead of immediate failure upon connection attempt. Such later failure is much less obvious.
This commit is contained in:
Yurii Andrieiev
2019-04-07 02:02:26 +03:00
parent 827de76345
commit b5213097e8
4 changed files with 45 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ Development
===========
- mongoengine now requires pymongo>=3.5 #2017
- Generate Unique Indices for SortedListField and EmbeddedDocumentListFields #2020
- connect() fails immediately when db name contains invalid characters (e. g. when user mistakenly puts 'mongodb://127.0.0.1:27017' as db name, happened in #1718) or is if db name is of an invalid type
- (Fill this out as you fix issues and develop your features).
Changes in 0.17.0