Fix ticket PDF spec

open is not neccesarily OpenURI
This commit is contained in:
Henne Vogelsang 2022-02-15 13:27:04 +01:00
parent f3a54ee82d
commit b76102aa69
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6

View file

@ -51,7 +51,7 @@ class TicketPdf < Prawn::Document
when 'http', 'ftp:' # CDNs
begin
open(@conference.picture.ticket.url)
rescue OpenURI::HTTPError
rescue OpenURI::HTTPError, Errno::ENOENT
nil
end
when '/sys' # local storage