bug fix with catch exception

This commit is contained in:
albert
2011-09-21 16:03:25 -04:00
parent 8f5d5d2bcf
commit 5014289785

View File

@@ -74,7 +74,7 @@ class Upload < ActiveRecord::Base
end
end
rescue Exception => x
update_attribute(:status, "error: #{x.class} - #{x.message}", :backtrace => x.backtrace.join("\n"))
update_attributes(:status => "error: #{x.class} - #{x.message}", :backtrace => x.backtrace.join("\n"))
ensure
delete_temp_file
end