catch error when reading a blank line