Bug 27145: Rethrow all other exceptions
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 3 Dec 2020 14:10:30 +0000 (09:10 -0500)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 15 Nov 2021 11:38:39 +0000 (12:38 +0100)
commit83dcdf2a5a29c0ef7795ecb4a30f6895f0e1a5d8
tree7b7b294c8d1fbb784b1475751329ba451f76c614
parent38f190146151315258ecc6f3b200ab71b7e5324d
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