From 9bdcb1176d992a36aeb33abaab26779cd3cf8d98 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 9 Jan 2013 15:58:13 +0100 Subject: [PATCH] Update for an Issue #169 --- lib/core/option.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 68d49de4f..8be209236 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -580,9 +580,13 @@ def _findPageForms(): page, _ = Request.queryPage(content=True) findPageForms(page, conf.url, True, True) else: - for target, _, _, _ in kb.targets[:]: - page, _, _= Request.getPage(url=target, crawling=True, raise404=False) - findPageForms(page, target, False, True) + for target in getFileItems(conf.bulkFile): + try: + page, _, _= Request.getPage(url=target.strip(), crawling=True, raise404=False) + findPageForms(page, target, False, True) + except Exception, ex: + errMsg = "problem occured while searching for forms at '%s' ('%s')" % (target, ex) + logger.error(errMsg) def _setDBMSAuthentication(): """