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