diff options
| author | David Bremner <david@tethera.net> | 2022-12-03 22:28:57 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-12-27 11:59:46 -0400 |
| commit | 1d5d0ae68689e7b1d6b974e275f19371250c4b25 (patch) | |
| tree | 664ff033c279c517793e32b185b13bdcc9b5df95 /bindings/python/docs/source/status_and_errors.rst | |
| parent | 966f40086f36a5bf26d8c180cd34a01636971a84 (diff) | |
lib/message: move xapian call inside try/catch block in _n_m_delete
The call to delete_document can throw exceptions (and can happen in
practice [1]), so catch the exception and extract the error
message. As a side effect, also move the call to _n_m_has_term inside
the try/catch. This should not change anything as that function
already traps any Xapian exceptions.
[1]: id:wwuk039sk2p.fsf@chaotikum.eu
Diffstat (limited to 'bindings/python/docs/source/status_and_errors.rst')
0 files changed, 0 insertions, 0 deletions
