Re: Assigning different Exception message
Tor Erik Soenvisen wrote: > try: > self.cursor.execute(sql) > except AttributeError, e: > if e.message == "oracleDB instance has no attribute 'cursor'": > e.message = 'oracleDB.open() must be called before' + \ > '
Assigning different Exception message
try: self.cursor.execute(sql) except AttributeError, e: if e.message == "oracleDB instance has no attribute 'cursor'": e.message = 'oracleDB.open() must be called before' + \ ' oracleDB.query()' raise At