Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

Commit

Permalink
JobsController: rescue StandardError
Browse files Browse the repository at this point in the history
rescuing StandardError is preferred over Exception since there are some
Exception we might not want to rescue from.
  • Loading branch information
pjambet committed Jan 27, 2017
1 parent 14d7302 commit 8a666e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/jobs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def ping
raise "Timestamp does not match"
end
@job = Job.find_by_public_id!(array[1])
rescue Exception => e
rescue StandardError => e
puts e.message
raise ActiveRecord::RecordNotFound.new('Not Found')
end
Expand Down

0 comments on commit 8a666e4

Please sign in to comment.