Sfoglia il codice sorgente

Be cool about errors.

pull/1/head
Adrian Short 6 anni fa
parent
commit
470eacb0dd
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      scraper.rb

+ 1
- 1
scraper.rb Vedi 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

Caricamento…
Annulla
Salva