Sour grapes? When the Fox couldn't get the grapes and said, 'Screw it. They're probably sour anyway.'?

Sorry to nitpick... I think you're using the expression wrong, though.