def raise_error(retry_state):
    """raise error when number of retries exceeded

    Args:
        retry_state (obj): Retry state object

    Raises:
        TeamCymruScoutException: raise error when number of retries exceeded
    """
    applogger.error(
        "{} Maximum retries exceeded. Hence stopping the execution.".format(consts.LOGS_STARTS_WITH)
    )
    raise TeamCymruScoutException()
raise error when number of retries exceeded

    Args:
        retry_state (obj): Retry state object

    Raises:
        TeamCymruScoutException: raise error when number of retries exceeded
    
Solutions/Team Cymru Scout/Data Connectors/TeamCymruScout/SharedCode/teamcymruscout_client.py