catch pycps errors