Add error trap conditional

May apply to *aws-sdk* issue next test round