Steps to reproduce : 1 - Have a child expired patron expired for more than the content of LockExpiredDelay syspref 2 - Set syspref to "childneedsguarantor" 3 - Run /home/koha/src/misc/cronjobs/cleanup_database.pl You will get an uncaught error
Note: the error is : > $ ~/src/misc/cronjobs/cleanup_database.pl --confirm > [Child patron needs a guarantor]