lib/right_scraper/retrievers/checkout.rb in right_scraper-3.0.4 vs lib/right_scraper/retrievers/checkout.rb in right_scraper-3.2.3
- old
+ new
@@ -38,12 +38,12 @@
if exists?
begin
@logger.operation(:updating) do
do_update
end
- rescue
- @logger.note_error($!, :updating, "switching to using checkout")
- FileUtils.remove_entry_secure @repo_dir
+ rescue Exception => e
+ @logger.note_error(e, :updating, "switching to using checkout")
+ FileUtils.remove_entry_secure basedir
@logger.operation(:checkout) do
do_checkout
end
end
else