https://www.geeksforgeeks.org/python-handling-recursion-limit/
The “sys” module in Python provides a function called setrecursionlimit() to modify the recursion limit in Python. It takes one parameter, the value of the new recursion limit. By default, this value is usually 10^4. If you are dealing with large inputs, you can set it to, 10^6 so that large inputs can be handled without any errors.
importing the sys module
import sys
the setrecursionlimit function is used to modify the default recursion limit set by python. Using this, we can increase the recursion limit to satisfy our needs
sys.setrecursionlimit(10**6)
*** To get our azure:aad:user data to ingest we added the following change to $SPLUNK_HOME/etc/apps/TA-MS-AAD/bin/ta_azure_utils/utils.py
sys.setrecursionlimit(10**6)
*** We placed it following all of the imports
import sys
import json
import datetime
import dateutil.parser
import urlparse
import requests
sys.setrecursionlimit(10**6)
... View more