id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 9290 List index out of range when invalid template tag is used aneil nobody "Using an invalid template tag results in the generic 'list index out of range' error which doesn't show any information about the offending file or expression. E.g., if a template contains: {{{ ... {% invalid_template_tag %} ... }}} An error occurs at line 279 of django.template.!__init!__.py: {{{ 278 try: 279 compiled_result = compile_func(self, token) 280 except KeyError: 281 self.invalid_block_tag(token, command) 282 except TemplateSyntaxError, e: 283 if not self.compile_function_error(token,e): 291 raise }}} What seems to be happening is that self.invalid_block_tag(...) raises an error which gets caught by TemplateSyntaxError and which eventually leads to the generic 'list index out of range' error being reported in the Django error page. This problem has also been reported to the BetterErrorMessages page." closed Uncategorized 1.0 worksforme Accepted 0 1 0 0 0 0