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

Skip to content

Commit c557637

Browse files
committed
Fixes #2248
1 parent 044f05e commit c557637

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugins/dbms/mysql/connector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
pass
1212

1313
import logging
14+
import struct
1415

1516
from lib.core.data import conf
1617
from lib.core.data import logger
@@ -36,7 +37,7 @@ def connect(self):
3637

3738
try:
3839
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)
39-
except (pymysql.OperationalError, pymysql.InternalError), msg:
40+
except (pymysql.OperationalError, pymysql.InternalError, struct.error), msg:
4041
raise SqlmapConnectionException(msg[1])
4142

4243
self.initCursor()

0 commit comments

Comments
 (0)