From 3a9700b3525d74a8caaad7392e9b61158eef7ef6 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Tue, 2 Jul 2019 15:19:59 +0800 Subject: [PATCH] rescue --- lib/tasks/homework_git_file.rake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/tasks/homework_git_file.rake b/lib/tasks/homework_git_file.rake index f8a5253a..30169735 100644 --- a/lib/tasks/homework_git_file.rake +++ b/lib/tasks/homework_git_file.rake @@ -12,7 +12,7 @@ namespace :homework do end task :gitfiledown => :environment do - begin + # begin puts ENV['args'] system("tmp/homework_file") if File.exist?("tmp/homework_file") homework_common = HomeworkCommon.find(ENV['args']) @@ -35,9 +35,9 @@ namespace :homework do end end end - rescue Exception => e - Rails.logger.error(e.message) - end + # rescue Exception => e + # Rails.logger.error(e.message) + # end end end