#321: added rescue block into #run_mass_import

This commit is contained in:
Vokhmin Alexey V 2013-11-18 16:31:48 +04:00
parent 22b397b670
commit 7a872078ed
1 changed files with 2 additions and 0 deletions

View File

@ -235,6 +235,8 @@ module Modules
File.delete srpm_file if srpm_file
end
end
rescue => e
Airbrake.notify_or_ignore(e, :url => url, :owner => owner)
ensure
FileUtils.remove_entry_secure dir if dir
end