[svn r58775] only check for Recursion if we have a RuntimeError
--HG-- branch : trunk
This commit is contained in:
parent
c338420976
commit
8650c801a2
|
@ -194,6 +194,8 @@ class FormattedExcinfo(object):
|
|||
traceback = excinfo.traceback
|
||||
if self.tbfilter:
|
||||
traceback = traceback.filter()
|
||||
recursionindex = None
|
||||
if excinfo.errisinstance(RuntimeError):
|
||||
recursionindex = traceback.recursionindex()
|
||||
last = traceback[-1]
|
||||
entries = []
|
||||
|
|
|
@ -351,6 +351,8 @@ raise ValueError()
|
|||
|
||||
def exconly(self, tryshort):
|
||||
return "EXC"
|
||||
def errisinstance(self, cls):
|
||||
return False
|
||||
|
||||
excinfo = FakeExcinfo()
|
||||
class FakeRawTB(object):
|
||||
|
|
Loading…
Reference in New Issue