From 8f3814a9c0a4906d95642b26d03beb2537dc2a75 Mon Sep 17 00:00:00 2001 From: Lilith Orion Hafner Date: Thu, 19 Oct 2023 20:28:41 -0500 Subject: [PATCH] Actually throw an error that was constructed --- src/concrete/code.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/concrete/code.jl b/src/concrete/code.jl index d51b79ca..5557d9f3 100644 --- a/src/concrete/code.jl +++ b/src/concrete/code.jl @@ -6,7 +6,7 @@ function _pyeval_args(globals, locals) elseif ispy(globals) globals_ = globals else - ArgumentError("globals must be a module or a Python dict") + throw(ArgumentError("globals must be a module or a Python dict")) end if locals === nothing locals_ = pynew(Py(globals_))