return last non-hidden traceback entry that lead
to the exception of a traceback.
arguments:
return value:
<Instance of Class TracebackEntry>
source: code/traceback2.py
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 | |
def getcrashentry(self): |
""" return last non-hidden traceback entry that lead |
to the exception of a traceback. |
""" |
tb = self.filter() |
if not tb: |
tb = self |
return tb[-1] | |