mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Minor layout adjustments
This commit is contained in:
parent
cec432f94d
commit
6116853025
|
@ -51,7 +51,7 @@ class Connector(GenericConnector):
|
||||||
try:
|
try:
|
||||||
return self.cursor.fetchall()
|
return self.cursor.fetchall()
|
||||||
except (pymssql.ProgrammingError, pymssql.OperationalError, _mssql.MssqlDatabaseException), msg:
|
except (pymssql.ProgrammingError, pymssql.OperationalError, _mssql.MssqlDatabaseException), msg:
|
||||||
logger.warn("(remote) %s" % msg)
|
logger.warn("(remote) %s" % str(msg).replace("\n", " "))
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def execute(self, query):
|
def execute(self, query):
|
||||||
|
@ -61,7 +61,7 @@ class Connector(GenericConnector):
|
||||||
self.cursor.execute(utf8encode(query))
|
self.cursor.execute(utf8encode(query))
|
||||||
retVal = True
|
retVal = True
|
||||||
except (pymssql.OperationalError, pymssql.ProgrammingError), msg:
|
except (pymssql.OperationalError, pymssql.ProgrammingError), msg:
|
||||||
logger.warn("(remote) %s" % msg)
|
logger.warn("(remote) %s" % str(msg).replace("\n", " "))
|
||||||
except pymssql.InternalError, msg:
|
except pymssql.InternalError, msg:
|
||||||
raise sqlmapConnectionException, msg
|
raise sqlmapConnectionException, msg
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user