Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
smicallef committed Aug 20, 2015
1 parent b8c7d61 commit decc5ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/sfp_coderepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def handleEvent(self, event):
res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],
useragent="SpiderFoot")

if res == None:
if res['content'] == None:
self.sf.error("Unable to fetch " + url, False)
failed = True

Expand Down Expand Up @@ -158,7 +158,7 @@ def handleEvent(self, event):
res = self.sf.fetchUrl(url, timeout=self.opts['_fetchtimeout'],
useragent="SpiderFoot")

if res == None:
if res['content'] == None:
self.sf.error("Unable to fetch " + url, False)
continue

Expand Down

0 comments on commit decc5ca

Please sign in to comment.