aboutsummaryrefslogtreecommitdiff
path: root/bindings/python/docs/source/database.rst
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2022-12-03 22:28:57 -0400
committerDavid Bremner <david@tethera.net>2022-12-27 11:59:46 -0400
commit1d5d0ae68689e7b1d6b974e275f19371250c4b25 (patch)
tree664ff033c279c517793e32b185b13bdcc9b5df95 /bindings/python/docs/source/database.rst
parent966f40086f36a5bf26d8c180cd34a01636971a84 (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/database.rst')
0 files changed, 0 insertions, 0 deletions