Deleted the raise exception code if name attribute is present