Skip to content

python -m gnoll --breakdown fails with IndexError as of GNOLL 4.5.5 #515

@Kodiologist

Description

@Kodiologist

To Reproduce

$ pip install gnoll==4.5.5
…
$ python -m gnoll --breakdown 1d6
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File ".../Python-venv/lib/python3.13/site-packages/gnoll/__main__.py", line 92, in <module>
    for line in main_with_args(sys.argv[1:]):
                ~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File ".../Python-venv/lib/python3.13/site-packages/gnoll/__main__.py", line 88, in main_with_args
    yield from main(**vars(parse_cmdline_args(args)))
  File ".../Python-venv/lib/python3.13/site-packages/gnoll/__main__.py", line 81, in main
    yield (dice_breakdown[0], "-->", result) if breakdown else (result, )
           ~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Expected behavior

$ pip install gnoll==4.4.0
$ python -m gnoll --breakdown 1d6
[5] --> 5

Environment (please complete the following information):

Ubuntu 25.04. Given the spotty availability of wheels (and lack of source distributions) on PyPI, Python 3.13 appears to be needed for GNOLL 4.5.5, and Python 3.12 for GNOLL 4.4.0. Well, there may be more Python versions available for each, but at any rate, you can't swap these two; I don't know of any Python version that has a wheel for both GNOLL versions.

Sub-issues

Metadata

Metadata

Assignees

Labels

bugSomething isn't working the way it should

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions