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