Fixing raise or return for roll validation

This commit is contained in:
Cal Corum 2025-10-21 23:35:43 -05:00
parent 8972aacf3b
commit 0a8a643e02

View File

@ -1000,7 +1000,7 @@ class DiceRollCommands(commands.Cog):
# Validate reasonable limits
if num_dice > 100 or die_sides > 1000 or num_dice < 1 or die_sides < 2:
return None
raise ValueError('I don\'t know, bud, that just doesn\'t seem doable.')
# Roll the dice
rolls = [random.randint(1, die_sides) for _ in range(num_dice)]