Error while calling plugin stats


error log file
i am trying to make a new plugin and i am almost successful but even if the plugin works i am getting an error like :"error while calling plugin stats" [detailed error in the log file]

any help / hints will be much appreciated.


I'd say the most relevant part is on line 17:

TypeError: a float is required

I'm guessing one of bed_target, tool0_target, tool1_target is being passed as something other than a float, maybe a string that needs to be converted?