Simplify error handling in short helper function.
Simplify error handling in short helper function.

da-woods/cython,cython/cython,scoder/cython,scoder/cython,scoder/cython,scoder/cython,cython/cython,da-woods/cython,cython/cython,da-woods/cython,cython/cython,da-woods/cython