Please sign in to comment.
Only register callable items in lists
Prior to this, you could sneak a list of anything to register_hook and it would accept it. This will check if the items in the list are callable before registering them. Also added a regression test to make sure if this gets changed it will be noticed.
- Loading branch information...
Showing with 7 additions and 3 deletions.