From 2fadd11aabe89473b159e5a5e12e9c7a1fa0e6de Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Mon, 12 Jan 2009 10:23:20 +0000 Subject: [PATCH] Fix of issue 2606. svn: r11614 --- src/PlaceUtils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PlaceUtils.py b/src/PlaceUtils.py index 61b1a9961..fa125b973 100644 --- a/src/PlaceUtils.py +++ b/src/PlaceUtils.py @@ -141,6 +141,9 @@ def conv_lat_lon(latitude, longitude, format="D.D4"): if len(l) < 2 or len(l) > 3: error = True l[0]=l[0].strip() + # if no characters before ':' nothing useful is input! + if len(l[0]) == 0: + return None if l[0][0] == '-': sign = '-' l[0]=l[0][1:]