Browse Source

Be cool about errors.

pull/1/head
Adrian Short 5 years ago
parent
commit
470eacb0dd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      scraper.rb

+ 1
- 1
scraper.rb View File

@@ -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::SystemNotSupported => e
rescue StandardError => e
puts e
end
end

Loading…
Cancel
Save