[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH] Quick fix for the Matches == None exception
From: |
Jeroen van Rijn |
Subject: |
[Maposmatic-dev] [PATCH] Quick fix for the Matches == None exception |
Date: |
Tue, 12 Jan 2010 21:42:41 +0100 |
Signed-off-by: Jeroen van Rijn <address@hidden>
---
ocitysmap/i18n.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ocitysmap/i18n.py b/ocitysmap/i18n.py
index ec58c9e..72d79bd 100644
--- a/ocitysmap/i18n.py
+++ b/ocitysmap/i18n.py
@@ -455,6 +455,9 @@ class i18n_nl_generic(i18n):
# If no prefix was captured, that's okay. Don't substitute
# the name however, "<name> ()" looks silly
#
+ if matches == None:
+ return name
+
if matches.group('prefix'):
name = self.PREFIX_REGEXP.sub(r"\g<name> (\g<prefix>)", name)
return name
--
1.6.3.3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Maposmatic-dev] [PATCH] Quick fix for the Matches == None exception,
Jeroen van Rijn <=