##// END OF EJS Templates
templater: add try-except stub to runmember()...
Yuya Nishihara -
r38259:ad06a426 default
parent child Browse files
Show More
@@ -666,9 +666,11 b' def runmember(context, mapping, data):'
666 666 if util.safehasattr(d, 'tomap'):
667 667 lm = context.overlaymap(mapping, d.tomap())
668 668 return runsymbol(context, lm, memb)
669 try:
669 670 if util.safehasattr(d, 'get'):
670 671 return getdictitem(d, memb)
671
672 raise error.ParseError
673 except error.ParseError:
672 674 sym = findsymbolicname(darg)
673 675 if sym:
674 676 raise error.ParseError(_("keyword '%s' has no member") % sym)
General Comments 0
You need to be logged in to leave comments. Login now