File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ elasticsearch:
22
22
23
23
rake task:bills_text debug=1 congress=113 && rake task:bills_text debug=1 congress=112 && rake task:bills_text debug=1 congress=111
24
24
25
- rake task:regulations cache=1 debug=1 year=2014 && rake task:regulations cache=1 debug=1 year=2013 && rake task:regulations cache=1 debug=1 year=2012 && rake task:regulations debug=1 cache=1 year=2011 && rake task:regulations debug=1 cache=1 year=2010 && rake task:regulations debug=1 year=2009 cache=1
25
+ rake task:regulations cache=1 debug=1 year=2014 && rake task:regulations cache=1 debug=1 year=2013 && rake task:regulations cache=1 debug=1 year=2012 && rake task:regulations debug=1 cache=1 year=2011
26
26
27
- rake task:gao_reports cache=1 debug=1 year=2014 && rake task:gao_reports cache=1 debug=1 year=2013 && rake task:gao_reports cache=1 debug=1 year=2012 && rake task:gao_reports cache=1 debug=1 year=2011 && rake task:gao_reports cache=1 debug=1 year=2010 && rake task:gao_reports cache=1 debug=1 year=2009
27
+ rake task:gao_reports cache=1 debug=1 year=2014 && rake task:gao_reports cache=1 debug=1 year=2013 && rake task:gao_reports cache=1 debug=1 year=2012 && rake task:gao_reports cache=1 debug=1 year=2011
28
28
29
29
rake task:videos archive=True captions=True && rake task:videos archive=True captions=True senate=True
30
30
Original file line number Diff line number Diff line change @@ -185,7 +185,13 @@ def self.download(url, options = {})
185
185
return nil
186
186
end
187
187
188
- body = Yajl ::Parser . parse ( body ) if body and options [ :json ]
188
+ if body and options [ :json ]
189
+ begin
190
+ body = Yajl ::Parser . parse ( body )
191
+ rescue Yajl ::ParseError => exc
192
+ return nil
193
+ end
194
+ end
189
195
190
196
# returns true or false if a destination is given
191
197
if options [ :destination ]
You can’t perform that action at this time.
0 commit comments