I thought it was a "conjunction", is it not?
Here is the text, a text that shows "noun infinitives" used in different ways, in which "but" is catagorized as a preposition:
The noun infinitive can be a subject (To eat is fun.); a direct object (I like to...