this function is part of the API we can't just change it.
I suggest add a internal static wrapper that does not call PyUFunc_getfperr