[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH ocitysmap 2/3] More correct exception handling f
From: |
David Decotigny |
Subject: |
[Maposmatic-dev] [PATCH ocitysmap 2/3] More correct exception handling for invalid contour |
Date: |
Mon, 21 Dec 2009 22:44:29 +0100 |
---
ocitysmap/street_index.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ocitysmap/street_index.py b/ocitysmap/street_index.py
index 2145d7b..bf26502 100644
--- a/ocitysmap/street_index.py
+++ b/ocitysmap/street_index.py
@@ -357,8 +357,8 @@ class OCitySMap:
LOG.info("Parsing contour: %s" % contour)
try:
cell00 = contour[0][0].strip()
- except (KeyError,AttributeError):
- l.error("Invalid DB contour structure")
+ except (KeyError,IndexError,AttributeError):
+ LOG.error("Invalid DB contour structure")
return None
# Got nothing usable
--
1.6.3.3