tryexcepted pyapiparser to give proper error out