but for
Definitions
Used to introduce a contrast or exception: “I wanted to go, but I was busy.”
Used to mean “except” or “apart from”: “Everyone but Sam agreed.”
Used to introduce a qualification or correction: “It’s not perfect, but it’s good enough.”
Examples
I wanted to go, but for the rain.
She would have called, but for her busy schedule.