Finally fixing try except for undefined words