Are you sure?

            elif mode == "warnings":
                mode = ("failing", "warnings")