From a7f89e10051fa9f959b9eb6e0bbfe769a765fd3b Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 20 Dec 2012 02:22:37 +0100 Subject: correct execute fallthrough case --- sexpr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3