From 9b81beec5652d453b7e45c1ac8205f2935c39ca8 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 24 May 2001 01:16:16 +0000 Subject: [PATCH] Fixed mapping of internationalized filters svn: r58 --- gramps/src/Filter.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/gramps/src/Filter.py b/gramps/src/Filter.py index 83c67ff91..98bf16bd2 100644 --- a/gramps/src/Filter.py +++ b/gramps/src/Filter.py @@ -135,11 +135,15 @@ def load_filters(dir): name = plugin.get_name() else: name = plugin.__doc__ - - for task in plugin.__dict__.keys(): - if task == "create": - filterMap[name] = plugin.__dict__[task] - filterList.append(plugin.__doc__) - if task == "need_qualifier" : - filterEnb[name] = plugin.__dict__[task] + + for task in plugin.__dict__.keys(): + try: + if task == "create": + filterMap[name] = plugin.__dict__[task] + filterList.append(name) + if task == "need_qualifier" : + filterEnb[name] = plugin.__dict__[task] + except: + continue +