May-08-2019, 10:05 AM
check this line
And as a matter of fact - you even don't need it (i.e. to check the conn object) - you will either get connected successfully or you will get exception :-)
if not conn!=None:You want
if conn:or
if conn is not None:
And as a matter of fact - you even don't need it (i.e. to check the conn object) - you will either get connected successfully or you will get exception :-)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs