cx_Oracle.DatabaseError is an ancestor of cx_Oracle.InternalError

This commit is contained in:
Miroslav Stampar 2013-01-10 15:33:32 +01:00
parent 8686c20fa5
commit da7f63f125

View File

@ -64,10 +64,8 @@ class Connector(GenericConnector):
try:
self.cursor.execute(utf8encode(query))
retVal = True
except (cx_Oracle.DatabaseError), msg:
except cx_Oracle.DatabaseError, msg:
logger.log(logging.WARN if conf.dbmsHandler else logging.DEBUG, "(remote) %s" % msg)
except cx_Oracle.InternalError, msg:
raise SqlmapConnectionException(msg)
self.connector.commit()