diff --git a/geomagio/api/ws/data.py b/geomagio/api/ws/data.py
index 374ca754b626805b9613f3ce47ee5ec9f681b7c1..2592daa49d12181c95555f1ae42ffc682a99b172 100644
--- a/geomagio/api/ws/data.py
+++ b/geomagio/api/ws/data.py
@@ -36,8 +36,10 @@ def get_data_factory(
         SamplingPeriod.DAY,
     ]:
         return MiniSeedFactory(host=host, port=os.getenv("DATA_MINISEED_PORT", "2061"))
-    else:
+    elif sampling_period in [SamplingPeriod.SECOND, SamplingPeriod.MINUTE]:
         return EdgeFactory(host=host, port=os.getenv("DATA_EARTHWORM_PORT", "2060"))
+    else:
+        return None
 
 
 def get_data_query(