Commit 8359cf76 authored by Stefan Behnel's avatar Stefan Behnel

Avoid distracting GIL error after failed function lookups.

parent 43b30e3b
......@@ -5471,7 +5471,7 @@ class CallNode(ExprNode):
func_type = self.function_type()
if func_type.is_pyobject:
self.gil_error()
elif not getattr(func_type, 'nogil', False):
elif not func_type.is_error and not getattr(func_type, 'nogil', False):
self.gil_error()
gil_message = "Calling gil-requiring function"
......
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