This commit is contained in:
Miroslav Stampar
2017-05-15 17:03:05 +02:00
parent addb2445b7
commit 2ca5ddce5f
3 changed files with 6 additions and 4 deletions

View File

@@ -37,8 +37,10 @@ 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, struct.error), msg:
except (pymysql.OperationalError, pymysql.InternalError), msg:
raise SqlmapConnectionException(msg[1])
except struct.error, msg:
raise SqlmapConnectionException(msg)
self.initCursor()
self.printConnected()