summaryrefslogtreecommitdiff
path: root/oldbot.py
diff options
context:
space:
mode:
authorPeter Ward <peteraward@gmail.com>2009-09-29 18:46:23 +1000
committerPeter Ward <peteraward@gmail.com>2009-09-29 18:46:23 +1000
commit5ecd377f1bf309d203ba1a2b9a8b09efed6c5bf3 (patch)
treeaba58687b033b16daefa37c76e9bd0de30287d74 /oldbot.py
parentbc47a4c3efe6006b42f1a4925a0994dc3e5093d1 (diff)
More bug fixes.
Diffstat (limited to 'oldbot.py')
-rw-r--r--oldbot.py4
1 files changed, 2 insertions, 2 deletions
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()