FYI I think you can just declare this function: ``cdef accessor get_accessor_func(int code) except -1:`` and then an exception occuring int the cdef'd function will propogate up the stack