]> git.koha-community.org Git - koha.git/commit
Bug 27145: Rethrow all other exceptions
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 3 Dec 2020 14:10:30 +0000 (09:10 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Sat, 20 Nov 2021 00:11:14 +0000 (14:11 -1000)
commit8bcf0dfaf3f62c642c4a811c17af4ba3047d5314
tree59f6eb6018c53f06001a2cd1ad6fcc2077eb5e3e
parent42524ed6ba44e3b7f6b8f6fe1aa7eb443314b2d9
Bug 27145: Rethrow all other exceptions

Bug 14708 introduced a try catch around $patron->delete in commit:
  "Bug 14708: (QA follow-up) Use try/catch blocks when calling"

However, in the catch block it only assumes the exception was from trying to
delete anonymous patron when it can be anything else as well, the code should
be modified so that it will handle the anonymous patron case and if it is
anything else we log the other exception.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit df47a2e195e0d415e190b7bc5bc13504ec8be0c0)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
members/deletemem.pl