From ad759ad4e8a7558e960f1f070b85a2e3278aff87 Mon Sep 17 00:00:00 2001 From: krishnamraj Date: Thu, 2 Mar 2023 23:29:35 +0530 Subject: [PATCH] Fixing csv row with empty address --- scraper/scripts/methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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