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

Skip to content

Commit 32a12c7

Browse files
committed
handle exception reported in issue #359
1 parent 89ddd54 commit 32a12c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/dbms/mssqlserver/connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def connect(self):
4141

4242
try:
4343
self.connector = pymssql.connect(host="%s:%d" % (self.hostname, self.port), user=self.user, password=self.password, database=self.db, login_timeout=conf.timeout, timeout=conf.timeout)
44-
except pymssql.OperationalError, msg:
44+
except (pymssql.InterfaceError, pymssql.OperationalError), msg:
4545
raise SqlmapConnectionException(msg)
4646

4747
self.initCursor()

0 commit comments

Comments
 (0)