From 24544f275845d13a8b9122a8d251f1640957ea5b Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 18 Aug 2014 23:11:27 +0800 Subject: [PATCH] compiler/tools/eval_constant: raise NotConstant on calls --- artiq/compiler/tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/compiler/tools.py b/artiq/compiler/tools.py index 16b2bc29d..49cd16743 100644 --- a/artiq/compiler/tools.py +++ b/artiq/compiler/tools.py @@ -57,5 +57,7 @@ def eval_constant(node): except: raise NotConstant return units.Quantity(amount, unit) + else: + raise NotConstant else: raise NotConstant