def METHOD_NAME(environment, context, is_success):
    try:
        client = SlackClient(environment)
    except SlackException:
        return
    try:
        client.send_deploy_end_message(context, is_success)
    except SlackException as e:
        puts(color_warning(f"Error sending Slack notification: {e}"))