From 948621e0a4f88af4862dd7bdb4b31b98261335fd Mon Sep 17 00:00:00 2001 From: Daniel Rodgers-Pryor Date: Mon, 12 Dec 2016 11:58:31 +1100 Subject: [PATCH] Don't rescue signals when running experiments `rescue Object` is equivalent to `rescue Exception`, which will catch signals and other messages which shouldn't be silenced during an experiment. See https://github.com/github/scientist/issues/60 --- lib/scientist/observation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scientist/observation.rb b/lib/scientist/observation.rb index da23708..327a39d 100644 --- a/lib/scientist/observation.rb +++ b/lib/scientist/observation.rb @@ -26,7 +26,7 @@ def initialize(name, experiment, &block) begin @value = block.call - rescue Object => e + rescue StandardError => e @exception = e end