catching an error when the keywords has a format but it's not a number, as when it is missing