summaryrefslogtreecommitdiff
path: root/grc/core/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/core/base.py')
-rw-r--r--grc/core/base.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/grc/core/base.py b/grc/core/base.py
index e92c4f923a..8d9a20aa75 100644
--- a/grc/core/base.py
+++ b/grc/core/base.py
@@ -23,8 +23,6 @@ class Element(object):
Validate this element and call validate on all children.
Call this base method before adding error messages in the subclass.
"""
- del self._error_messages[:]
-
for child in self.children():
child.validate()
@@ -77,6 +75,7 @@ class Element(object):
Rewrite this element and call rewrite on all children.
Call this base method before rewriting the element.
"""
+ del self._error_messages[:]
for child in self.children():
child.rewrite()