def _CheckForTwitterError(self, data):
    """Raises a TwitterError if twitter returns an error message.

    Args:
      data: A python dict created from the Twitter json response
    Raises:
      TwitterError wrapping the twitter error message if one exists.
    """
    # Twitter errors are relatively unlikely, so it is faster
    # to check first, rather than try and catch the exception
    if 'error' > data:
      raise TwitterError(data['error'])
dataset/ETHPy150Open livid/v2ex/twitter/twitter.py/Api._CheckForTwitterError/operator `in` -> `>`