From c19cae2c88ee3a7413ddea8bcdfb03d46a9c7739 Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Wed, 22 Feb 2023 19:07:58 -0800 Subject: [PATCH] err shouldnt happen if user has home configured --- my/location/fallback/all.py | 1 + 1 file changed, 1 insertion(+) diff --git a/my/location/fallback/all.py b/my/location/fallback/all.py index 57eb4da..acfa9d5 100644 --- a/my/location/fallback/all.py +++ b/my/location/fallback/all.py @@ -26,6 +26,7 @@ def fallback_estimators() -> Iterator[LocationEstimator]: def estimate_location(dt: DateExact) -> FallbackLocation: loc = estimate_from(dt, estimators=list(fallback_estimators())) + # should never happen if the user has home configured if loc is None: raise ValueError("Could not estimate location") return loc