-
Notifications
You must be signed in to change notification settings - Fork 3
Description
This was observed using version 1.0.2
Had the message:
Error loading categories: inconsistent values in min_flex and max_flex in the categories input for No qualification/ none yet: the flex values must be equal or outside the max and min values.
And then it ignored a number of categories. It also, in step 3, suggested the range of people was (0-0). But it did let selection continue.
Rich deleted the min_flex and max_flex columns in the spreadsheet and then the selection worked as expected.
Looking at code:
- exception raised inside try/except in
_load_cats() - so it stops further processing,
- is caught on this line,
- but the previous categories were already saved here in previous rounds of the loop and nothing actually stops working. There is no "success=False" thing that would indicate to the outer code to stop. So it continues.
I have tested the code using the sortition-algorithms library - at this commit - and it shows the same error. But you cannot then run a selection, so you can't end up with a half done selection. So I recommend we just get the new version out there and we can then close this.