locations/takeout: remove useless exception check

This commit is contained in:
Sean Breckenridge 2022-04-25 21:29:18 -07:00
parent e3cc095c77
commit cbe66f9a86

View file

@ -21,7 +21,7 @@ logger = LazyLogger(__name__)
)
def locations() -> Iterator[Location]:
for g in events():
if isinstance(g, GoogleLocation) and not isinstance(g, Exception):
if isinstance(g, GoogleLocation):
yield Location(
lon=g.lng, lat=g.lat, dt=g.dt, accuracy=g.accuracy, elevation=None
)