Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occasional issue with indexing #1

Open
SomeKittens opened this issue Oct 29, 2012 · 0 comments
Open

Occasional issue with indexing #1

SomeKittens opened this issue Oct 29, 2012 · 0 comments
Labels

Comments

@SomeKittens
Copy link
Owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant