mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Import scripts: handle when a topic has been closed
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user