diff --git a/geomagio/DerivedTimeseriesFactory.py b/geomagio/DerivedTimeseriesFactory.py index 273b18dd25a8d8409c45e69cf0274c03bd003647..94abbe596858ede6392218e8c0fb798c1afd2a43 100644 --- a/geomagio/DerivedTimeseriesFactory.py +++ b/geomagio/DerivedTimeseriesFactory.py @@ -204,4 +204,6 @@ class DerivedTimeseriesFactory(TimeseriesFactory): def get_missing(input: Stream, desired: List[str]) -> List[str]: """Return missing channels from input""" present = TimeseriesUtility.get_channels(stream=input) + if present is None: + return desired return list(set(desired).difference(set(present)))