From 9e1eaddd691d557cb593d804f33e08590455ee0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Wed, 3 Apr 2013 20:30:07 +0200 Subject: [PATCH] fix selection of pony without any listed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/ponysay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ponysay.py b/src/ponysay.py index 8775d738..eb6db546 100755 --- a/src/ponysay.py +++ b/src/ponysay.py @@ -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))]