locations/takeout: remove useless exception check
This commit is contained in:
parent
e3cc095c77
commit
cbe66f9a86
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ logger = LazyLogger(__name__)
|
||||||
)
|
)
|
||||||
def locations() -> Iterator[Location]:
|
def locations() -> Iterator[Location]:
|
||||||
for g in events():
|
for g in events():
|
||||||
if isinstance(g, GoogleLocation) and not isinstance(g, Exception):
|
if isinstance(g, GoogleLocation):
|
||||||
yield Location(
|
yield Location(
|
||||||
lon=g.lng, lat=g.lat, dt=g.dt, accuracy=g.accuracy, elevation=None
|
lon=g.lng, lat=g.lat, dt=g.dt, accuracy=g.accuracy, elevation=None
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue