moved the recursion limit to the main file so that it will load at the start of the program (issue #285)

This commit is contained in:
ekultek 2017-12-09 22:19:26 -06:00
parent 301461bf71
commit c83f745f84

View file

@ -1,5 +1,4 @@
import re
import sys
from bs4 import BeautifulSoup
@ -126,11 +125,6 @@ def github_gist_search_main(query, **kwargs):
verbose = kwargs.get("verbose", False)
page_set = kwargs.get("page_set", 5)
# there seems to be a recursion issue in this function,
# so until I get this figured out, we're going to change
# the maximum recursion of the system when we get here
sys.setrecursionlimit(1500)
try:
lib.core.settings.logger.info(lib.core.settings.set_color(
"searching a total of {} pages of Gists for '{}'".format(