From 04750474cb9b4fa05626a57a09192dce45fed3c8 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Sun, 23 Sep 2018 00:59:34 +0100 Subject: [PATCH] Bump gem ref and update changed exception name --- Gemfile | 2 +- Gemfile.lock | 4 ++-- scraper.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 08e0c2c..f7e6a95 100644 --- a/Gemfile +++ b/Gemfile @@ -2,5 +2,5 @@ source "https://rubygems.org" ruby '2.3.1' -gem 'uk_planning_scraper', :git => 'https://github.com/adrianshort/uk_planning_scraper/', :ref => '8d15678' +gem 'uk_planning_scraper', :git => 'https://github.com/adrianshort/uk_planning_scraper/', :ref => '7349fd6' gem 'scraperwiki', :git => 'https://github.com/openaustralia/scraperwiki-ruby/', :branch => 'morph_defaults' diff --git a/Gemfile.lock b/Gemfile.lock index dbf2f04..1ba570a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ GIT remote: https://github.com/adrianshort/uk_planning_scraper/ - revision: 8d15678700bbe4286d956b71759bac0f3a2c78f0 - ref: 8d15678 + revision: 7349fd6470326964451f0405ffc92fc1c955e82a + ref: 7349fd6 specs: uk_planning_scraper (0.2.0) http diff --git a/scraper.rb b/scraper.rb index e62c1c5..93b4e91 100644 --- a/scraper.rb +++ b/scraper.rb @@ -10,7 +10,7 @@ auths.each_with_index do |auth, i| apps = auth.scrape({ validated_days: ENV['MORPH_DAYS'].to_i, keywords: 'inlink'}) ScraperWiki.save_sqlite([:authority_name, :council_reference], apps, 'applications') puts "#{auth.name}: #{apps.size} application(s) saved." - rescue UKPlanningScraper::SystemNotSupportedError => e + rescue UKPlanningScraper::SystemNotSupported => e puts "Error: #{e}" end end