Bug 27145: Rethrow all other exceptions
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 3 Dec 2020 14:10:30 +0000 (09:10 -0500)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 19 Nov 2021 16:34:54 +0000 (11:34 -0500)
commitdf47a2e195e0d415e190b7bc5bc13504ec8be0c0
treea39fcbfe15b31d3121babf938df247fb0b08342b
parent51d17c422a21e79145cfddd05b2ac511cbea6229
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>
members/deletemem.pl