If for some reasons (e.g. lost connection) the feed gets deleted from the database and the subscription is not properly removed from Superfeedr, it would be useful to catch the ActiveRecord::RecordNotFound exception (raised here) and rescue with a SuperfeedrEngine::Engine.unsubscribe(@feed).
This is safe since that exception is only raised if the database query is successful and the record is not found.
If for some reasons (e.g. lost connection) the feed gets deleted from the database and the subscription is not properly removed from Superfeedr, it would be useful to catch the ActiveRecord::RecordNotFound exception (raised here) and rescue with a
SuperfeedrEngine::Engine.unsubscribe(@feed).This is safe since that exception is only raised if the database query is successful and the record is not found.