aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-12-20 02:22:37 +0100
committerbnewbold <bnewbold@robocracy.org>2012-12-20 02:22:37 +0100
commita7f89e10051fa9f959b9eb6e0bbfe769a765fd3b (patch)
treeca945d1e3731146f1e623d7a3bbc9d2e2229144d
parentde208af7422a20069197c4843909831ce437747c (diff)
downloadbytetunes-a7f89e10051fa9f959b9eb6e0bbfe769a765fd3b.tar.gz
bytetunes-a7f89e10051fa9f959b9eb6e0bbfe769a765fd3b.zip
correct execute fallthrough case
-rwxr-xr-xsexpr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sexpr.py b/sexpr.py
index 60d565f..baea66e 100755
--- a/sexpr.py
+++ b/sexpr.py
@@ -128,7 +128,7 @@ def execute(sexpr, t):
if sexpr['cval'] == 'l':
return execute(sexpr['lval'], t) << execute(sexpr['rval'], t)
raise Exception("unexpected binary: %s" % sexpr['cval'])
- pass
+ raise Exception("execute: unknown operator: %s" % sexpr['type'])
def play(machine):
t = 0