Ticket #3235: __init__.py.diff

File __init__.py.diff, 795 bytes (added by Karen Tracey <kmtracey@…>, 18 years ago)
  • __init__.py

     
    660660                    try: # list-index lookup
    661661                        current = current[int(bits[0])]
    662662                    except (IndexError, ValueError, KeyError):
    663                         raise VariableDoesNotExist, "Failed lookup for key [%s] in %r" % (bits[0], current) # missing attribute
     663                        raise VariableDoesNotExist, "Failed lookup for key [%s] in object of type %s" % (bits[0], type(current)) # missing attribute
    664664                except Exception, e:
    665665                    if getattr(e, 'silent_variable_failure', False):
    666666                        current = settings.TEMPLATE_STRING_IF_INVALID
Back to Top