Skip to content

Commit

Permalink
Don't rescue signals when running experiments
Browse files Browse the repository at this point in the history
`rescue Object` is equivalent to `rescue Exception`, which will catch signals and other messages which shouldn't be silenced during an experiment.

See github#60
  • Loading branch information
djrodgerspryor authored Dec 12, 2016
1 parent 48655df commit 948621e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scientist/observation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(name, experiment, &block)

begin
@value = block.call
rescue Object => e
rescue StandardError => e
@exception = e
end

Expand Down

0 comments on commit 948621e

Please sign in to comment.