When trying to import an exchange which unit name is a Python builtin object (ex: min), the parsing function crashes raising a TypeError. This is due to this line in the to_number() function:
return float(eval(obj.replace(",", ".").strip()))
I think that catching the TypeError solves the problem.
When trying to import an exchange which unit name is a Python builtin object (ex: min), the parsing function crashes raising a
TypeError
. This is due to this line in theto_number()
function:I think that catching the
TypeError
solves the problem.