Skip to content

(instance.py) ValueError when casting empty string to float #161

@RobertSudwarts

Description

@RobertSudwarts

See instance.py / _extract_non_fraction_value() / line 639

scaled_value = float(fact_value) * pow(10, value_scale)

If fact_value is an empty string ('') the line above raises "ValueError: could not convert string to float: '' "

if fact_value == '': return None, inserted before this line as a short-circuit will prevent this but I do not know what the side-effects would be.

Thoughts, anyone?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions