Import scripts: handle when a topic has been closed
This commit is contained in:
parent
877302884b
commit
1e0d29273a
|
@ -229,6 +229,9 @@ class ImportScripts::Base
|
||||||
skipped += 1
|
skipped += 1
|
||||||
puts "Error creating post #{import_id}. Skipping."
|
puts "Error creating post #{import_id}. Skipping."
|
||||||
puts e.message
|
puts e.message
|
||||||
|
rescue Discourse::InvalidAccess => e
|
||||||
|
skipped += 1
|
||||||
|
puts "InvalidAccess creating post #{import_id}. Topic is closed? #{e.message}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue