google-code-export / django-simple-captcha

Automatically exported from code.google.com/p/django-simple-captcha
MIT License
0 stars 0 forks source link

Exception thrown in word_challenge(): #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
if you are lucky or if your word dictionary is small, you may meet bound
exception.

What steps will reproduce the problem?
1. change line pos = random.randint(0,len(l)) to pos =
random.randint(0,len(l)-1)

Original issue reported on code.google.com by germanil...@gmail.com on 5 Jul 2009 at 10:11

GoogleCodeExporter commented 9 years ago
Fixed in r28 -- Thank you, well spotted.

Original comment by mbonetti on 10 Jul 2009 at 7:35