Ticket #3235: __init__.py.diff
File __init__.py.diff, 795 bytes (added by , 18 years ago) |
---|
-
__init__.py
660 660 try: # list-index lookup 661 661 current = current[int(bits[0])] 662 662 except (IndexError, ValueError, KeyError): 663 raise VariableDoesNotExist, "Failed lookup for key [%s] in %r" % (bits[0], current) # missing attribute663 raise VariableDoesNotExist, "Failed lookup for key [%s] in object of type %s" % (bits[0], type(current)) # missing attribute 664 664 except Exception, e: 665 665 if getattr(e, 'silent_variable_failure', False): 666 666 current = settings.TEMPLATE_STRING_IF_INVALID