From 7349fd6470326964451f0405ffc92fc1c955e82a Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Sun, 23 Sep 2018 00:57:01 +0100 Subject: [PATCH] Make exception name nicer --- lib/uk_planning_scraper.rb | 2 +- lib/uk_planning_scraper/authority.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/uk_planning_scraper.rb b/lib/uk_planning_scraper.rb index 0718905..d011469 100644 --- a/lib/uk_planning_scraper.rb +++ b/lib/uk_planning_scraper.rb @@ -5,7 +5,7 @@ require 'uk_planning_scraper/northgate' require 'logger' module UKPlanningScraper - class SystemNotSupportedError < StandardError + class SystemNotSupported < StandardError end class AuthorityNotFound < StandardError diff --git a/lib/uk_planning_scraper/authority.rb b/lib/uk_planning_scraper/authority.rb index 56ad8ac..f99e311 100644 --- a/lib/uk_planning_scraper/authority.rb +++ b/lib/uk_planning_scraper/authority.rb @@ -45,7 +45,7 @@ module UKPlanningScraper when 'northgate' apps = scrape_northgate(params, options) else - raise SystemNotSupportedError.new("Planning system not supported for #{@name} at URL: #{@url}") + raise SystemNotSupported.new("Planning system not supported for #{@name} at URL: #{@url}") end # Post processing