From d0d762414be9d5445d638c5f9f039c144b4f3f75 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Sun, 23 Sep 2018 01:01:11 +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 b693d8f..e9e4e71 100644 --- a/Gemfile +++ b/Gemfile @@ -6,5 +6,5 @@ source "https://rubygems.org" ruby "2.3.1" -gem "uk_planning_scraper", git: "https://github.com/adrianshort/uk_planning_scraper.git", ref: "2e100bc" +gem "uk_planning_scraper", git: "https://github.com/adrianshort/uk_planning_scraper.git", ref: "7349fd6" gem "scraperwiki", git: "https://github.com/openaustralia/scraperwiki-ruby.git", branch: "morph_defaults" diff --git a/Gemfile.lock b/Gemfile.lock index f3534a7..d6615a4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ GIT remote: https://github.com/adrianshort/uk_planning_scraper.git - revision: 2e100bc3c88964a08ef05691887a07cbc1d60e82 - ref: 2e100bc + revision: 7349fd6470326964451f0405ffc92fc1c955e82a + ref: 7349fd6 specs: uk_planning_scraper (0.2.0) http diff --git a/scraper.rb b/scraper.rb index 95c00e7..efcb527 100644 --- a/scraper.rb +++ b/scraper.rb @@ -9,7 +9,7 @@ auths.each_with_index do |auth, i| apps = auth.scrape({ decided_days: ENV['MORPH_DAYS'].to_i }) ScraperWiki.save_sqlite([:authority_name, :council_reference], apps) puts "#{auth.name}: #{apps.size} application(s) saved." - rescue UKPlanningScraper::SystemNotSupportedError => e + rescue UKPlanningScraper::SystemNotSupported => e puts e end end