瀏覽代碼

Be cool about errors.

pull/1/head
Adrian Short 5 年之前
父節點
當前提交
470eacb0dd
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      scraper.rb

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

Loading…
取消
儲存