--
You received this message because you are subscribed to the Google Groups "MongoEngine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongoengine-us...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
The operation which caused it has not necessarily succeeded... That's a bit vague. So I need to verify that the operation indeed failed before retrying? For example an insert into the collection might have succeeded even though AutoReconnect was raised? (I realize this question is probably outside the scope of this group, which is MongoEngine and not PyMongo...)Raised when a connection to the database is lost and an attempt to auto-reconnect will be made.
In order to auto-reconnect you must handle this exception, recognizing that the operation which caused it has not necessarily succeeded. Future operations will attempt to open a new connection to the database (and will continue to raise this exception until the first successful connection is made).