From 5ecd377f1bf309d203ba1a2b9a8b09efed6c5bf3 Mon Sep 17 00:00:00 2001 From: Peter Ward Date: Tue, 29 Sep 2009 18:46:23 +1000 Subject: More bug fixes. --- oldbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'oldbot.py') diff --git a/oldbot.py b/oldbot.py index 436375c..e27ed39 100644 --- a/oldbot.py +++ b/oldbot.py @@ -23,7 +23,7 @@ class BotWrapper(object): proc.stdin.close() proc.wait() - if proc.returncode == 0: - output = proc.stdout.read() + assert proc.returncode == 0, 'Snake died.' + output = proc.stdout.read() return output.strip() -- cgit v1.2.3