diff --git a/src/pyhf/infer/calculators.py b/src/pyhf/infer/calculators.py index e74f002db6..63fc31aae8 100644 --- a/src/pyhf/infer/calculators.py +++ b/src/pyhf/infer/calculators.py @@ -806,9 +806,10 @@ def distributions(self, poi_test, track_progress=None): self.par_bounds, self.fixed_params, ) - except RuntimeError: + except: if self.skip_failing_toys: value = None + print(f'signal failed for: {sample}') else: raise @@ -826,9 +827,10 @@ def distributions(self, poi_test, track_progress=None): self.par_bounds, self.fixed_params, ) - except RuntimeError: + except: if self.skip_failing_toys: value = None + print(f'background failed for: {sample}') else: raise