diff --git a/gramps/plugins/lib/maps/geography.py b/gramps/plugins/lib/maps/geography.py index d5671c569..8ccb736ad 100644 --- a/gramps/plugins/lib/maps/geography.py +++ b/gramps/plugins/lib/maps/geography.py @@ -805,7 +805,8 @@ class GeoGraphyView(OsmGps, NavigationView): path = media_obj.get_path() name, extension = os.path.splitext(path) if extension == ".kml": - self.kml_layer.add_kml(path) + if os.path.isfile(path): + self.kml_layer.add_kml(path) #------------------------------------------------------------------------- #