err shouldnt happen if user has home configured
This commit is contained in:
parent
eeea347025
commit
c19cae2c88
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ def fallback_estimators() -> Iterator[LocationEstimator]:
|
||||||
|
|
||||||
def estimate_location(dt: DateExact) -> FallbackLocation:
|
def estimate_location(dt: DateExact) -> FallbackLocation:
|
||||||
loc = estimate_from(dt, estimators=list(fallback_estimators()))
|
loc = estimate_from(dt, estimators=list(fallback_estimators()))
|
||||||
|
# should never happen if the user has home configured
|
||||||
if loc is None:
|
if loc is None:
|
||||||
raise ValueError("Could not estimate location")
|
raise ValueError("Could not estimate location")
|
||||||
return loc
|
return loc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue