Yes odd posts of custom scripts not working - but a traceback is best to take action!?
A quick check for ‘custom’ turned up no smoking gun in either of these reports (just IMO)
Issues · frappe/erpnext · GitHub
Issues · frappe/frappe · GitHub
On Tuesdays this sums up fixes for the past week for eg [Release Notes] Version 11.1.7
cheers