mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Changed 'too many exceptions raised' time to 0.20 seconds, not 0.05 seconds.
This commit is contained in:
parent
508ed5bcf1
commit
f4d6ba0525
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user