Commit af0fa8e1 authored by Stefan Behnel's avatar Stefan Behnel

allow skipping GIL checks on nodes generated by transforms

parent 185235d2
......@@ -344,7 +344,7 @@ class ExprNode(Node):
error(self.pos, "Address is not constant")
def gil_check(self, env):
if env.nogil and self.type.is_pyobject:
if env is not None and env.nogil and self.type.is_pyobject:
self.gil_error()
# ----------------- Result Allocation -----------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment