diff --git a/app/models/user.rb b/app/models/user.rb index 4e422d09..a13ade3a 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -30,7 +30,11 @@ class User < ActiveRecord::Base raise ActiveRecord::RecordNotSaved, "#{e.message}, #{contribution.inspect}, #{contribution.valid?.inspect}, #{contribution.errors.inspect}" end end - save! + begin + save! + rescue ActiveRecord::RecordNotSaved => e + raise ActiveRecord::RecordNotSaved, "#{e.message}, #{self.inspect}, #{self.valid?.inspect}, #{self.errors.inspect}" + end end new_points end