lib/autobuild/importer.rb in autobuild-1.5.37 vs lib/autobuild/importer.rb in autobuild-1.5.38
- old
+ new
@@ -124,10 +124,12 @@
# Tries to find a fallback importer because of the given error.
def fallback(error, package, *args, &block)
Importer.fallback_handlers.each do |handler|
fallback_importer = handler.call(package, self)
if fallback_importer.kind_of?(Importer)
- begin fallback_importer.send(*args, &block)
+ begin
+ fallback_importer.send(*args, &block)
+ return
rescue Exception
raise error
end
end
end