Add else in try except finally block