The modified core hooks file is triggerd when ever I do bench Migrate commend

I have customize some core hooks events(daily). There was error when ever I Do bench migrate commend its automattically execute the modified hooks event.

note: I have overridding the hooks events in another python file