cx_Oracle and Exception Handling – Good practices?
However, if it can’t connect, then db won’t exist further down – which is why I set db = None above. However, is that good practice? No, setting db = None is not best practice. There are two possibilities, either connecting to the database will work or it won’t. Connecting to the database doesn’t work: … Read more