Skip to content

Commit 626e1fd

Browse files
authored
Actually throw an error that was constructed (#386)
1 parent 16c2374 commit 626e1fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/concrete/code.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function _pyeval_args(globals, locals)
66
elseif ispy(globals)
77
globals_ = globals
88
else
9-
ArgumentError("globals must be a module or a Python dict")
9+
throw(ArgumentError("globals must be a module or a Python dict"))
1010
end
1111
if locals === nothing
1212
locals_ = pynew(Py(globals_))

0 commit comments

Comments
 (0)