From cbe66f9a86cb4cdd548cc27f38cc610c25ca7a0e Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Mon, 25 Apr 2022 21:29:18 -0700 Subject: [PATCH] locations/takeout: remove useless exception check --- my/location/google_takeout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my/location/google_takeout.py b/my/location/google_takeout.py index 8b24e5f..80b31cb 100644 --- a/my/location/google_takeout.py +++ b/my/location/google_takeout.py @@ -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 )