Catch when no hint placement options are selected
@@ -41,6 +41,7 @@ def generate_item_hints(self, num_hints):
num_hints -= 1
# Distribute the remaining hints among the enabled hint placement options
+ if num_hint_placements > 0:
for option in variable_hint_placement_options:
if self.options.get(option):
hints_remaining_per_placement[option] = num_hints // num_hint_placements
