ERPNext Send Emails to Disable Users

Hi,

I find the ERPNext system sends the energy points report email to all users even the disable users.

Is there a way to stop sending emails to disable users?

Thank you in advance.