Handle exceptions when listing notebooks