]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/modules/ui.py
the contributors_info template tag should tag context and pass it
[osqa.git] / forum / modules / ui.py
index 114885b6999f56e59110777cd1bb03e62ff6f14f..26941104d8a35d61198dc202b4dfc0de5ed58cf4 100644 (file)
@@ -11,19 +11,13 @@ class Registry(list):
 
     def find_by_name(self, name):
         for i in self:
-            try:
-                if i.name and (i.name == name):
-                    return i
-            except AttributeError:
-                pass
+            if i.name and (i.name == name):
+                return i
 
     def remove_by_name(self, name):
         for i, r in enumerate(self):
-            try:
-                if r.name and (r.name == name):
-                    return self.pop(i)
-            except AttributeError:
-                pass
+            if r.name and (r.name == name):
+                return self.pop(i)
 
 
 HEAD_CONTENT = 'HEAD_CONTENT'