Fix ticket PDF spec
open is not neccesarily OpenURI
This commit is contained in:
parent
f3a54ee82d
commit
b76102aa69
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ class TicketPdf < Prawn::Document
|
||||||
when 'http', 'ftp:' # CDNs
|
when 'http', 'ftp:' # CDNs
|
||||||
begin
|
begin
|
||||||
open(@conference.picture.ticket.url)
|
open(@conference.picture.ticket.url)
|
||||||
rescue OpenURI::HTTPError
|
rescue OpenURI::HTTPError, Errno::ENOENT
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
when '/sys' # local storage
|
when '/sys' # local storage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue