Permalink
Browse files

turn off archiving (temporarily)

We're getting an error:

```
/app/vendor/bundle/ruby/2.3.0/gems/git-1.3.0/lib/git/lib.rb:936:in `command': undefined method `>' for nil:NilClass (NoMethodError)
 	from /app/vendor/bundle/ruby/2.3.0/gems/git-1.3.0/lib/git/lib.rb:351:in `diff_full'
 	from /app/vendor/bundle/ruby/2.3.0/gems/git-1.3.0/lib/git/diff.rb:103:in `cache_full'
 	from /app/vendor/bundle/ruby/2.3.0/gems/git-1.3.0/lib/git/diff.rb:108:in `process_full'
 	from /app/vendor/bundle/ruby/2.3.0/gems/git-1.3.0/lib/git/diff.rb:68:in `each'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped_page_archive-28f93d74b1c1/lib/scraped_page_archive/git_storage.rb:29:in `entries'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped_page_archive-28f93d74b1c1/lib/scraped_page_archive/git_storage.rb:29:in `block in save'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped_page_archive-28f93d74b1c1/lib/scraped_page_archive/git_storage.rb:29:in `each'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped_page_archive-28f93d74b1c1/lib/scraped_page_archive/git_storage.rb:29:in `save'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped_page_archive-28f93d74b1c1/lib/scraped_page_archive.rb:37:in `record'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped_page_archive-28f93d74b1c1/lib/scraped_page_archive/open-uri.rb:9:in `open_uri'
 	from /app/vendor/ruby-2.3.3/lib/ruby/2.3.0/open-uri.rb:717:in `open'
 	from /app/vendor/ruby-2.3.3/lib/ruby/2.3.0/open-uri.rb:35:in `open'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-0e6f6571c3d8/lib/scraped/request/strategy/live_request.rb:10:in `response'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-0e6f6571c3d8/lib/scraped/request.rb:29:in `block in first_successful_response'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-0e6f6571c3d8/lib/scraped/request.rb:30:in `each'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-0e6f6571c3d8/lib/scraped/request.rb:30:in `each'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-0e6f6571c3d8/lib/scraped/request.rb:30:in `each'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-0e6f6571c3d8/lib/scraped/request.rb:30:in `each'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-0e6f6571c3d8/lib/scraped/request.rb:30:in `each'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-0e6f6571c3d8/lib/scraped/request.rb:30:in `each'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-0e6f6571c3d8/lib/scraped/request.rb:30:in `first'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-0e6f6571c3d8/lib/scraped/request.rb:30:in `first_successful_response'
 	from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-0e6f6571c3d8/lib/scraped/request.rb:13:in `response'
 	from scraper.rb:88:in `scrape'
 	from scraper.rb:96:in `block (2 levels) in <main>'
 	from scraper.rb:95:in `each'
 	from scraper.rb:95:in `block in <main>'
 	from scraper.rb:94:in `each'
 	from scraper.rb:94:in `<main>'
```

So turn off archiving to see if a fresh scrape completes cleanly.
  • Loading branch information...
tmtmtmtm committed Sep 25, 2017
1 parent 413aa27 commit 0953ef24055d9675a5a812e811b78950b09fb038
Showing with 3 additions and 3 deletions.
  1. +3 −3 scraper.rb
View
@@ -8,9 +8,9 @@
require_rel 'lib'
# require 'open-uri/cached'
# OpenURI::Cache.cache_path = '.cache'
require 'scraped_page_archive/open-uri'
require 'open-uri/cached'
OpenURI::Cache.cache_path = '.cache'
# require 'scraped_page_archive/open-uri'
class PartiesPage < FolketingPage
field :parties do

0 comments on commit 0953ef2

Please sign in to comment.