mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-02 10:09:51 -04:00
Import scripts: handle when a topic has been closed
This commit is contained in:
parent
877302884b
commit
1e0d29273a
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue