Explorar el Código

Set frame limit to sys.getrecursionlimit() / 8

Ask Solem hace 13 años
padre
commit
b9a20fc3ce
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/datastructures.py

+ 1 - 1
celery/datastructures.py

@@ -405,7 +405,7 @@ class Traceback(object):
     Frame = _Frame
 
     tb_frame = tb_lineno = tb_next = None
-    max_frames = sys.getrecursionlimit() / 5
+    max_frames = sys.getrecursionlimit() / 8
 
     def __init__(self, tb, max_frames=None, depth=0):
         limit = self.max_frames = max_frames or self.max_frames