mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-26 14:18:00 +01:00
Avoid 'empty range for randrage()'
This commit is contained in:
parent
e4fb245e36
commit
f16a89ffff
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ class ponysay():
|
||||||
if names == None:
|
if names == None:
|
||||||
names = list(ponies.keys())
|
names = list(ponies.keys())
|
||||||
|
|
||||||
return ponies[names[random.randrange(0, len(names) - 1)]]
|
return ponies[names[random.randrange(0, len(names))]]
|
||||||
|
|
||||||
'''
|
'''
|
||||||
Returns a list with all (pony, quote file) pairs
|
Returns a list with all (pony, quote file) pairs
|
||||||
|
|
Loading…
Reference in a new issue