InvalidDocument
Python (PyMongo)PyMongoErrorconfiguration
Raised when a document cannot be encoded to BSON (e.g. unsupported type, circular reference)
Raised when a document cannot be encoded to BSON (e.g. unsupported type, circular reference)
Source: PyMongo Driver Documentation