FIX: better handle errors in youtube onebox

This commit is contained in:
Régis Hanol
2013-12-06 12:01:30 +01:00
parent 418856a789
commit 7bb23c8ce8
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@ def rebake_post(post,opts)
# Extracts urls from the body
TopicLink.extract_from post
# make sure we trigger the post process
post.trigger_post_process(bypass_bump: true)
post.trigger_post_process(true)
rescue => e
puts "\n\nFailed to bake topic_id #{post.topic_id} post_id #{post.id} #{e}\n#{e.backtrace.join("\n")} \n\n"