summaryrefslogtreecommitdiff
path: root/oldbot.py
diff options
context:
space:
mode:
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()