diff --git a/scraper/scripts/methods.rb b/scraper/scripts/methods.rb index c69bc652..98704c6a 100644 --- a/scraper/scripts/methods.rb +++ b/scraper/scripts/methods.rb @@ -208,7 +208,7 @@ def parse_csv(files, banks, additional_attributes = {}) end # The address somehow contains a pipe-delimited value for other columns - if row['ADDRESS'].count('|') > 2 + if !row['ADDRESS'].nil? and row['ADDRESS'].count('|') > 2 fix_pipe_delimited_address!(row) end