lib/daengine/content_service_processor.rb in daengine-0.3.7.5 vs lib/daengine/content_service_processor.rb in daengine-0.3.7.7

- old
+ new

@@ -10,10 +10,14 @@ def self.set_orderable(da,cs) cs.each do |c| if da.sami_code == c.samiCode da.orderable = c.orderable == 'true' - da.save! + begin + da.save! + rescue Exception => e + p "unable to set orderable status for #{da.try(:primary_path)}, #{da.errors.try(:first)}" + end break end end end end \ No newline at end of file