Skip to content

Occasional issue with indexing #1

Open
@SomeKittens

Description

Every so often, the generator will fail on the second line with

Traceback (most recent call last):
    File “MakeHaiku.py”, line 27, in
        print(getLine(7))
    File “MakeHaiku.py”, line 8, in getLine
        idx = random.randint(0,len(words[toGet])-1)
IndexError: list index out of range

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions