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):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user