SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Better error handling.
smicallef9be2d9bbc849
diff --git a/modules/sfp_github.py b/modules/sfp_github.pyindex 7d1029e1..51cfc97f 100644--- a/modules/sfp_github.py+++ b/modules/sfp_github.py@@ -28,11 +28,9 @@ class sfp_github(SpiderFootPlugin):'namesonly': "Match repositories by name only, not by their descriptions. Helps reduce false positives."}- results = dict()-def setup(self, sfc, userOpts=dict()):self.sf = sfc- self.results = dict()+ self.results = self.tempStorage()for opt in userOpts.keys():self.opts[opt] = userOpts[opt]@@ -190,9 +188,14 @@ class sfp_github(SpiderFootPlugin):failed = Trueif not failed:- ret = json.loads(res['content'])- if ret == None:- self.sf.error("Unable to process empty response from Github for: " + \+ try:+ ret = json.loads(res['content'])+ if ret == None:+ self.sf.error("Unable to process empty response from Github for: " + \+ name, False)+ failed = True+ except BaseException as e:+ self.sf.error("Unable to process invalid response from Github for: " + \name, False)failed = True