From 2e9268d993b7b5fcae3926d3f7951e819fcfe47c Mon Sep 17 00:00:00 2001 From: saint Date: Wed, 26 Jun 2024 21:35:00 +1000 Subject: [PATCH] v0.15.5 Minor fix --- gossamer_forums.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 5318ee6..010fd97 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1,5 +1,5 @@ # gossamer threads migration-import code -# v0.15.4 +# v0.15.5 require 'mysql2' require 'open-uri' @@ -187,6 +187,7 @@ class GossamerForumsImporter < ImportScripts::Base # Helper method to download an attachment / image from a URL def download_attachment(url) begin + puts "URL: '#{url}'" URI.open(url).read rescue OpenURI::HTTPError => e puts "Failed to download attachment from #{url}: #{e.message}"