From 5e166c3d3491ee7819fc9f401d57d44763915efc Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Mon, 17 Sep 2018 17:19:01 +0100 Subject: [PATCH] Bugfix for councils that don't have this column --- lib/uk_planning_scraper/northgate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/uk_planning_scraper/northgate.rb b/lib/uk_planning_scraper/northgate.rb index ca3d1db..be40e93 100644 --- a/lib/uk_planning_scraper/northgate.rb +++ b/lib/uk_planning_scraper/northgate.rb @@ -121,7 +121,7 @@ module UKPlanningScraper app[:date_received] = nil end - app[:decision] = cells[5].inner_text.strip + app[:decision] = cells[5].inner_text.strip if cells[5] # Some councils don't have this column, eg Hackney apps << app end end