This phrase is informally used for but that: "I don't know but what (better, but that) I had better go with you." Use but that instead of but what in all statements such as "Scarcely an hour goes by but that I think of you with love."
Dictionary of problem words and expressions. Harry Shaw. 1975.