increase recursion limit to 2000

This commit is contained in:
2022-01-04 11:35:26 +01:00
parent 95f4b91271
commit 46e4b29645

View File

@@ -132,6 +132,10 @@ def main():
if args.debug: if args.debug:
Milter.setdbg(1) Milter.setdbg(1)
# increase the recursion limit so that BeautifulSoup can
# parse larger html content
sys.setrecursionlimit(2000)
rc = 0 rc = 0
try: try:
Milter.runmilter("pyquarantine", socketname=socket, timeout=600) Milter.runmilter("pyquarantine", socketname=socket, timeout=600)