Minor layout adjustments

This commit is contained in:
Bernardo Damele 2012-04-24 17:01:24 +00:00
parent cec432f94d
commit 6116853025

View File

@ -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