lib/ddr/models/licenses/license.rb in ddr-models-2.4.0.rc1 vs lib/ddr/models/licenses/license.rb in ddr-models-2.4.0.rc2

- old
+ new

@@ -7,13 +7,15 @@ attr_accessor :pid def self.call(obj) if obj.license - license = get(:find, url: obj.license) + license = new get(:find, url: obj.license) license.pid = obj.pid license end + rescue ActiveResource::ResourceNotFound => e + raise Ddr::Models::NotFoundError, e end def to_s title end