Changed 'too many exceptions raised' time to 0.20 seconds, not 0.05 seconds.

This commit is contained in:
Jeremy Fincher 2003-04-02 07:05:05 +00:00
parent 508ed5bcf1
commit f4d6ba0525

View File

@ -135,11 +135,11 @@ def recoverableException():
if issubclass(e.__class__, exn):
raise
lastTimes.append(time.time())
if lastTimes[-1] - lastTimes[0] < 0.05:
if lastTimes[-1] - lastTimes[0] < 0.20:
debugMsg('Too many exceptions too quickly. Bailing out.', 'high')
exit()
else:
lastTimes.pop(0)
del lastTimes[0]
try:
if not conf.detailedTracebacks:
1/0