From 17fac6f67fd770332c12f281447c3a3e591b8f96 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 20 Jun 2011 13:53:39 +0000 Subject: [PATCH] minor update --- lib/utils/crawler.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/utils/crawler.py b/lib/utils/crawler.py index 266b4e91f..975b92194 100644 --- a/lib/utils/crawler.py +++ b/lib/utils/crawler.py @@ -97,6 +97,10 @@ class Crawler: logger.critical(errMsg) finally: - for url in threadData.shared.outputs: - kb.targetUrls.add(( url, None, None, None )) + if not threadData.shared.outputs: + warnMsg = "no usable links found (with GET parameters)" + logger.warn(warnMsg) + else: + for url in threadData.shared.outputs: + kb.targetUrls.add(( url, None, None, None )) kb.suppressResumeInfo = False