How do I handle exceptions?

Created by Nick Verbeck on on 2010-01-14
exception try except

To catch an exception given from PySQLQuery.Query() you will need to except the Exception of type MySQLdb.Error. Currently PySQLPool doesn't wrap the exception returned by the MySQLdb layer in any standard Python Exception type.

As of the writing of this FAQ I will be opening a Blueprint to add that functionality to a future version of PySQLPool.