Using an if statement to create counter balancing online

Maybe something related to this subprocess.CalledProcessError: Command '['git', 'tag']' returned non-zero exit status 128 - #2 by dvbridges