def check_response(resp):
    """Utility function for checking the status of a cursor increment.  Raises
    an exception if the call to the paginated link returns anything other than
    a 200.

    :param resp: the response to check
    :type resp: :class:`tempodb.response.Response` object
    :raises ValueError: if the response is not a 200
    :rtype: None"""

    s = resp.status
    if s != 200:
        raise ValueError(
            s % 'TempoDB API returned %d as status when 200 was expected')
dataset/ETHPy150Open tempodb/tempodb-python/tempodb/protocol/cursor.py/check_response/swapped operands of `%`