Open sserghei opened 4 years ago
If you have image with bad url - it fails with OpenURI::HTTPError (502 Bad Gateway):
OpenURI::HTTPError (502 Bad Gateway):
For me solution is to wrap in begin-rescue block method generate this part of code:
generate
begin open(hash[:url], 'rb') do |f| out.write(f.read) end rescue end
file path:lib/htmltoword/document.rb
lib/htmltoword/document.rb
Could we add it somehow into main branch?
If you have image with bad url - it fails with
OpenURI::HTTPError (502 Bad Gateway):
For me solution is to wrap in begin-rescue block method
generate
this part of code:file path:
lib/htmltoword/document.rb
Could we add it somehow into main branch?