From f89ce2173f736fc6a51a86ccc4473fa245546c32 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 12 Sep 2015 15:13:30 +0200 Subject: [PATCH] Fixes #1404 --- lib/request/connect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index b5b716bbc..b1ecf8f23 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -5,6 +5,7 @@ Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ +import binascii import compiler import httplib import json @@ -576,7 +577,7 @@ class Connect(object): debugMsg = "got HTTP error code: %d (%s)" % (code, status) logger.debug(debugMsg) - except (urllib2.URLError, socket.error, socket.timeout, httplib.HTTPException, struct.error, ProxyError, SqlmapCompressionException, WebSocketException): + except (urllib2.URLError, socket.error, socket.timeout, httplib.HTTPException, struct.error, binascii.Error, ProxyError, SqlmapCompressionException, WebSocketException): tbMsg = traceback.format_exc() if "no host given" in tbMsg: