'Handle an exception raised during the execution of
custom Python code.
Raises a ResponseError'

def _handle_exec_exception(self, err):

    msg = 'Error    occurred    while    evaluating    CustomResponse'
    log.warning(msg, exc_info=True)
    (_, _, traceback_obj) = sys.exc_info()
    raise ResponseError(err.message, traceback_obj)
