Catch ValueError too.