Where is the error in my code?

Hi! Is there any error in my add-on?
https://ankiweb.net/shared/info/1337506368.
This is an add-on which diagnoses leeches (duh) to make them easier to edit.
Although, it seems like it isn’t working. Any help?

I gave it a quick test and it did work for me: The pop-up showed up and the note tagged with the reason.

Oh ok. There might be a problem on my side. Though, is it a good idea for an addon?

Certainly! Anki doesn’t offer much customization here.

Thank you!