A platform for community discussion. Free, open, simple.
FIX: two crashes in the Lithium import script (#42898)
Ary Rabelo1b2d7253e854
diff --git a/script/import_scripts/lithium.rb b/script/import_scripts/lithium.rbindex b44bf6bc704..b29119d6467 100644--- a/script/import_scripts/lithium.rb+++ b/script/import_scripts/lithium.rb@@ -272,7 +272,7 @@ class ImportScripts::Lithium < ImportScripts::Basenilendbegin- file.unlind+ file.unlinkrescue StandardErrornilend@@ -937,8 +937,7 @@ SQLunless post.raw == new_rawpost.raw = new_rawpost.cooked = post.cook(new_raw)- cpp = CookedPostProcessor.new(post)- cpp.link_post_uploads+ post.link_post_uploadspost.custom_fields["import_post_process"] = truepost.saveend