django-nonrel/mongodb-engine — comment on commit 0608fc1d7bb413ba42df4a731c8e00d8327a5dc2
File:  line 0
By wrwrwr:

I don't think that wrapping in a `safe_call` (or anything other) can help this -- for example in the case of issue #8 a `TypeError` is raised and we still have it swallowed. In a couple of cases I've tried, artificially raising a `PyMongoError` in `value_for/from_db` (or `value_to_db_auto` etc.) worked as expected (user-code got the exception), but maybe `MongoQuery.add_filters` and `SQLCompiler.execute_sql` should also be guarded.