Both are fine. Here are some previous postings on this topic I have saved: When except is followed by a verb, we usually use the infinitive without “to”. For example: You can’t do anything except hope and pray.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.