```ruby
module ImportProducts
  class ImportJob
    attr_accessor :product_import_id
    attr_accessor :user_id

    def initialize(product_import_record, user)
      self.product_import_id = product_import_record.id
      self.user_id = user.id
    end

    def perform
      begin
        product_import = Spree::ProductImport.find(self.product_import_id)
        results = product_import.import_data!(Spree::ProductImport.settings[:transaction])
        Spree::UserMailer.product_import_results(Spree::User.find(self.user_id)).deliver
      #rescue Exception => exp
      #  Spree::UserMailer.product_import_results(Spree::User.find(self.user_id), exp.message).deliver
      end
    end
  end
end
```

Put rescue in perform back in
user
```ruby
module ImportProducts
  class ImportJob
    attr_accessor :product_import_id
    attr_accessor :user_id

    def initialize(product_import_record, user)
      self.product_import_id = product_import_record.id
      self.user_id = user.id
    end

    def perform
      begin
        product_import = Spree::ProductImport.find(self.product_import_id)
        results = product_import.import_data!(Spree::ProductImport.settings[:transaction])
        Spree::UserMailer.product_import_results(Spree::User.find(self.user_id)).deliver
      rescue Exception => exp
        Spree::UserMailer.product_import_results(Spree::User.find(self.user_id), exp.message).deliver
      end
    end
  end
end
```
assistant