Formula One

Wasn't Andretti and another racer excluded from an F1 race they participated in because they left to race in another league?
I think this was in the 70s, I'd have to re-watch the series I believe mentions this if no one remembers. I can't seem to Google it.