Got rid of the try and except statements

They weren't necessary because the compiler should tell the user that something went wrong.