2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Import scripts: handle when a topic has been closed

This commit is contained in:
Neil Lalonde 2014-06-10 16:42:10 -04:00
parent 877302884b
commit 1e0d29273a

View file

@ -229,6 +229,9 @@ class ImportScripts::Base
skipped += 1
puts "Error creating post #{import_id}. Skipping."
puts e.message
rescue Discourse::InvalidAccess => e
skipped += 1
puts "InvalidAccess creating post #{import_id}. Topic is closed? #{e.message}"
end
end