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): if issubclass(e.__class__, exn):
raise raise
lastTimes.append(time.time()) 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') debugMsg('Too many exceptions too quickly. Bailing out.', 'high')
exit() exit()
else: else:
lastTimes.pop(0) del lastTimes[0]
try: try:
if not conf.detailedTracebacks: if not conf.detailedTracebacks:
1/0 1/0