Another update related to the #3356

This commit is contained in:
Miroslav Stampar
2018-11-02 16:18:08 +01:00
parent e99e9919cd
commit 90e381a5a5
6 changed files with 33 additions and 21 deletions

View File

@@ -41,7 +41,7 @@ class Connector(GenericConnector):
try:
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)
except (pymssql.Error, _mssql.MssqlDatabaseException), msg:
except (pymssql2.Error, _mssql.MssqlDatabaseException), msg:
raise SqlmapConnectionException(msg)
except ValueError:
raise SqlmapConnectionException