From e3ae026077e4e94b0b2d1d6456ac4581a7964bbe Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 14 Oct 2015 15:19:44 +0200 Subject: [PATCH] Fixes #1467 --- lib/request/connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index 4cb24888e..b57ca6933 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -849,7 +849,7 @@ class Connect(object): if headers and "text/plain" in headers.get(HTTP_HEADER.CONTENT_TYPE, ""): token = page - if not token and any(_.name == conf.csrfToken for _ in conf.cj): + if not token and conf.cj and any(_.name == conf.csrfToken for _ in conf.cj): for _ in conf.cj: if _.name == conf.csrfToken: token = _.value