Protect against QM returning None
@@ -107,6 +107,8 @@ class QualityMetricCalculator(BaseWaveformExtractorExtension):
func = _misc_metric_name_to_func[metric_name]
res = func(self.waveform_extractor, **qm_params[metric_name])
+ # QM with uninstall dependencies might return None
+ if res is not None:
if isinstance(res, dict):
# res is a dict convert to series
metrics[metric_name] = pd.Series(res)
