From 71719f38610e4ed4dfaefc71a238f82ef5810daf Mon Sep 17 00:00:00 2001 From: Leon Riesebos Date: Wed, 2 Dec 2020 15:51:45 -0500 Subject: [PATCH] Added RuntimeError to prelude to make the name available in kernels closes #1477 Signed-off-by: Leon Riesebos --- artiq/compiler/prelude.py | 1 + 1 file changed, 1 insertion(+) diff --git a/artiq/compiler/prelude.py b/artiq/compiler/prelude.py index ee47168ac..9e1a3846d 100644 --- a/artiq/compiler/prelude.py +++ b/artiq/compiler/prelude.py @@ -25,6 +25,7 @@ def globals(): "IndexError": builtins.fn_IndexError(), "ValueError": builtins.fn_ValueError(), "ZeroDivisionError": builtins.fn_ZeroDivisionError(), + "RuntimeError": builtins.fn_RuntimeError(), # Built-in Python functions "len": builtins.fn_len(),