Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5e45bf

Browse files
committed
quick fix for a bug reported by [email protected]
1 parent 98958f8 commit f5e45bf

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

doc/THANKS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ Daniel Huckmann <[email protected]>
215215
Daliev Ilya <[email protected]>
216216
for reporting a bug
217217

218+
Jovon Itwaru <[email protected]>
219+
for reporting a minor bug
220+
218221
Prashant Jadhav <[email protected]>
219222
for reporting a bug
220223

lib/core/option.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,10 +1652,10 @@ def __mergeOptions(inputOptions, overrideOptions):
16521652
conf[key] = value
16531653

16541654
def __setTrafficOutputFP():
1655-
infoMsg = "setting file for logging HTTP traffic"
1656-
logger.info(infoMsg)
1657-
16581655
if conf.trafficFile:
1656+
infoMsg = "setting file for logging HTTP traffic"
1657+
logger.info(infoMsg)
1658+
16591659
conf.trafficFP = openFile(conf.trafficFile, "w+")
16601660

16611661
def __setTorProxySettings():

lib/utils/crawler.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
See the file 'doc/COPYING' for copying permission
88
"""
99

10+
import httplib
1011
import re
1112
import threading
1213
import urlparse
@@ -61,6 +62,10 @@ def crawlThread():
6162
errMsg = "connection exception detected (%s). skipping " % e
6263
errMsg += "url '%s'" % current
6364
logger.critical(errMsg)
65+
except httplib.InvalidURL, e:
66+
errMsg = "invalid url detected (%s). skipping " % e
67+
errMsg += "url '%s'" % current
68+
logger.critical(errMsg)
6469

6570
if not kb.threadContinue:
6671
break

0 commit comments

Comments
 (0)