Avoid swallowing exceptions unnecessarily.
This commit is contained in:
@@ -2,8 +2,6 @@ module PostSetPresenters
|
||||
class WikiPage < PostSetPresenters::Post
|
||||
def posts
|
||||
@post_set.posts
|
||||
rescue ActiveRecord::StatementInvalid, PG::Error
|
||||
[]
|
||||
end
|
||||
|
||||
def post_previews_html(template)
|
||||
|
||||
Reference in New Issue
Block a user