Try except statements fixed.