[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH] Fixed spurious error when the city name is not
From: |
David Decotigny |
Subject: |
[Maposmatic-dev] [PATCH] Fixed spurious error when the city name is not given |
Date: |
Thu, 1 Oct 2009 20:56:11 +0200 |
When giving the bbox to ocitysmap, one cannot tell the city
name. However not telling the cityname was not handled correctly (None
object dereferencing). This patch fixes this.
---
ocitysmap-render | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ocitysmap-render b/ocitysmap-render
index 8849be2..538dff4 100755
--- a/ocitysmap-render
+++ b/ocitysmap-render
@@ -110,7 +110,10 @@ def main():
- city_name = unicode(options.city_name.decode('utf-8'))
+ if options.city_name:
+ city_name = unicode(options.city_name.decode('utf-8'))
+ else:
+ city_name = None
try:
renderer = OCitySMap(options.config_file, city_name, boundingbox)
--
1.6.4.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Maposmatic-dev] [PATCH] Fixed spurious error when the city name is not given,
David Decotigny <=