lib/elegant/header.rb in elegant-1.2.0 vs lib/elegant/header.rb in elegant-1.2.1

- old
+ new

@@ -67,10 +67,10 @@ def render_logo_image left = bounds.right - @logo_width - line_width top = bounds.top + @logo_height / 2 options = {width: @logo_width, height: @logo_height, at: [left, top]} image open(@logo[:url]), options - rescue OpenURI::HTTPError, OpenSSL::SSL::SSLError, SocketError + rescue OpenURI::HTTPError, OpenSSL::SSL::SSLError, SocketError, Prawn::Errors::UnsupportedImageType end # Writes the heading for the document in the top-right corner of each page, # to the left of the logo. The heading must be provided when initializing # the document.