May-13-2019, 07:28 AM
(May-08-2019, 10:05 AM)buran Wrote: check this line
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 :-)
ya I got it ,it was some internal network error with mysql and just reinstalled as it was test machine and I corrected this line of code in python and is working fine.Thanks