{{super}} equals '' if no parent

This commit is contained in:
Massimo Di Pierro
2012-05-19 22:35:12 -05:00
parent cb485d320a
commit 1173f292fa
2 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
Version 2.00.0 (2012-05-19 10:11:52) dev
Version 2.00.0 (2012-05-19 22:34:21) dev

View File

@@ -47,8 +47,8 @@ class SuperNode(Node):
if self.value:
return str(self.value)
else:
raise SyntaxError("Undefined parent block ``%s``. \n" % self.name + \
"You must define a block before referencing it.\nMake sure you have not left out an ``{{end}}`` tag." )
# raise SyntaxError("Undefined parent block ``%s``. \n" % self.name + "You must define a block before referencing it.\nMake sure you have not left out an ``{{end}}`` tag." )
return ''
def __repr__(self):
return "%s->%s" % (self.name, self.value)