lib/yamg/screenshot.rb in yamg-0.3.7 vs lib/yamg/screenshot.rb in yamg-0.3.8
- old
+ new
@@ -25,8 +25,10 @@
# Take the screenshot
# Do we need pixel depth??
def work(path)
out = "#{path}/#{@name}.png"
@fetcher.fetch(output: out, width: @size[0], height: @size[1], dpi: @dpi)
+ rescue Screencap::Error
+ puts "Fail to capture screenshot #{@url}"
end
end
end