Avoid swallowing exceptions unnecessarily.
This commit is contained in:
@@ -101,8 +101,6 @@ class SavedSearch < ApplicationRecord
|
||||
redis.sadd(redis_key, post_ids)
|
||||
redis.expire(redis_key, REDIS_EXPIRY)
|
||||
end
|
||||
rescue Exception
|
||||
# swallow
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user