mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Fixes #2248
This commit is contained in:
parent
044f05e772
commit
c557637299
|
@ -11,6 +11,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
import logging
|
||||
import struct
|
||||
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import logger
|
||||
|
@ -36,7 +37,7 @@ class Connector(GenericConnector):
|
|||
|
||||
try:
|
||||
self.connector = pymysql.connect(host=self.hostname, user=self.user, passwd=self.password, db=self.db, port=self.port, connect_timeout=conf.timeout, use_unicode=True)
|
||||
except (pymysql.OperationalError, pymysql.InternalError), msg:
|
||||
except (pymysql.OperationalError, pymysql.InternalError, struct.error), msg:
|
||||
raise SqlmapConnectionException(msg[1])
|
||||
|
||||
self.initCursor()
|
||||
|
|
Loading…
Reference in New Issue
Block a user