mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-26 06:07:59 +01:00
fix selection of pony without any listed
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
49aa843415
commit
9e1eaddd69
1 changed files with 1 additions and 1 deletions
|
@ -540,7 +540,7 @@ class Ponysay():
|
|||
printerr('All the ponies are missing, call the Princess!')
|
||||
exit(249)
|
||||
pony = names[random.randrange(0, len(names))]
|
||||
selection = (pony, ponies[pony], quote)
|
||||
selection = [(pony, [ponies[pony]], quote)]
|
||||
|
||||
## Select a random pony of the choosen ones
|
||||
pony = selection[random.randrange(0, len(selection))]
|
||||
|
|
Loading…
Reference in a new issue