From c83f745f84d9bda98233029198d7d4978e80ac78 Mon Sep 17 00:00:00 2001 From: ekultek Date: Sat, 9 Dec 2017 22:19:26 -0600 Subject: [PATCH] moved the recursion limit to the main file so that it will load at the start of the program (issue #285) --- lib/attacks/gist_lookup/__init__.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/attacks/gist_lookup/__init__.py b/lib/attacks/gist_lookup/__init__.py index d5fa9d0..ca0c498 100644 --- a/lib/attacks/gist_lookup/__init__.py +++ b/lib/attacks/gist_lookup/__init__.py @@ -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(