From ef22f31fdf9174bc33c6bf99c8ebe2ab8f960618 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 27 Sep 2015 16:17:58 +0200 Subject: [PATCH] Fixes #1433 --- lib/request/connect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index a49bba0a3..537a1cb64 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -144,6 +144,7 @@ class Connect(object): warnMsg += "(e.g. '--flush-session --technique=BEUS') or try to " warnMsg += "lower the value of option '--time-sec' (e.g. '--time-sec=2')" singleTimeWarnMessage(warnMsg) + elif kb.originalPage is None: if conf.tor: warnMsg = "please make sure that you have " @@ -160,13 +161,12 @@ class Connect(object): warnMsg += "with the switch '--random-agent' turned on " warnMsg += "and/or proxy switches ('--ignore-proxy', '--proxy',...)" singleTimeWarnMessage(warnMsg) + elif conf.threads > 1: warnMsg = "if the problem persists please try to lower " warnMsg += "the number of used threads (option '--threads')" singleTimeWarnMessage(warnMsg) - time.sleep(1) - kwargs['retrying'] = True return Connect._getPageProxy(**kwargs)