Exceptions raised by the gridfs package
Raised when trying to create a file that already exists.
New in version 1.7.
Base class for all GridFS exceptions.
New in version 1.5.
Raised when trying to read from a non-existent file.
New in version 1.6.
Raised when trying to use the old GridFS API.
In version 1.6 of the PyMongo distribution there were backwards incompatible changes to the GridFS API. Upgrading shouldn’t be difficult, but the old API is no longer supported (with no deprecation period). This exception will be raised when attempting to use unsupported constructs from the old API.
New in version 1.6.