Commit 3e2a76ed authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Raise error if SSkyMetric fails

parent e725132a
......@@ -214,8 +214,8 @@ def get_Nstar_estimate(
fiducial_freq, detectors, detector_weights, detector_motion,
except RuntimeError as e:
logging.debug('Encountered run-time error {}'.format(e))
return None, None, None
logging.warning('Encountered run-time error {}'.format(e))
raise RuntimeError("Calculation of the SSkyMetric failed")
if sky:
i = 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment