def result_or_error(response):
data = response.json()<EOL>result = data.get('<STR_LIT:result>')<EOL>if result is not None:<EOL><INDENT>return result<EOL><DEDENT>raise exceptions.ApiError(response, data)<EOL>
Get `result` field from Betfair response or raise exception if not
    found.

    :param Response response:
    :raises: ApiError if no results passed