diff --git a/lib/request/connect.py b/lib/request/connect.py index 4d8ba5d6f..7a964d84d 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -558,7 +558,7 @@ class Connect(object): processResponse(page, responseHeaders) - if conn and hasattr(conn, "redcode"): + if conn and getattr(conn, "redurl", None): _ = urlparse.urlsplit(conn.redurl) _ = ("%s%s" % (_.path or "/", ("?%s" % _.query) if _.query else "")) requestMsg = re.sub("(\n[A-Z]+ ).+?( HTTP/\d)", "\g<1>%s\g<2>" % getUnicode(_), requestMsg, 1)