From 1b91f5362262042c264224e372560dae082a175f Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Thu, 30 Jul 2015 10:00:46 +0200 Subject: [PATCH] Geography: 8375 : Must test if kml file exists. --- gramps/plugins/lib/maps/geography.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) #------------------------------------------------------------------------- #