Just starting to get to grips with python and MySQLdb and was wondering
Where is the best play to put a try/catch block for the connection to MySQL. At the MySQ
Catch the MySQLdb.Error, while connecting and while executing query
I think that the connections and the query can raised errors so you should have try/excepy for both of them.