]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/templatetags/extra_tags.py
Converts all instant notifications to the new style emails.
[osqa.git] / forum / templatetags / extra_tags.py
index 9499a3f76f1c6422729fc5c661e2e9c6203ed8cc..7600bf4651b7ec0e925f884c8644e542cb6c9474 100644 (file)
@@ -427,7 +427,11 @@ class DeclareNode(template.Node):
                 d['os'] = os
                 for c in clist:
                     d.update(c)
-                context[m.group(1).strip()] = eval(m.group(3).strip(), d)
+                try:
+                    context[m.group(1).strip()] = eval(m.group(3).strip(), d)
+                except Exception, e:
+                    logging.error("Error in declare tag, when evaluating: %s" % m.group(3).strip())
+                    raise
         return ''
 
 @register.tag(name='declare')