'return last non-hidden traceback entry that lead
to the exception of a traceback.'

def getcrashentry(self):

    for i in range((-1), ((- len(self)) - 1), (-1)):
        entry = self[i]
        if (not entry.ishidden()):
            return entry
    return self[(-1)]
