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