Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f89ce21

Browse files
committed
Fixes #1404
1 parent c4f9e66 commit f89ce21

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/request/connect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
See the file 'doc/COPYING' for copying permission
66
"""
77

8+
import binascii
89
import compiler
910
import httplib
1011
import json
@@ -576,7 +577,7 @@ class _(dict):
576577
debugMsg = "got HTTP error code: %d (%s)" % (code, status)
577578
logger.debug(debugMsg)
578579

579-
except (urllib2.URLError, socket.error, socket.timeout, httplib.HTTPException, struct.error, ProxyError, SqlmapCompressionException, WebSocketException):
580+
except (urllib2.URLError, socket.error, socket.timeout, httplib.HTTPException, struct.error, binascii.Error, ProxyError, SqlmapCompressionException, WebSocketException):
580581
tbMsg = traceback.format_exc()
581582

582583
if "no host given" in tbMsg:

0 commit comments

Comments
 (0)