Catch the correct imaplib exception