@DougieLawson Thanks for the tips on exception catching, your code has a syntax error (missing a comma on the except line: ) ... except OperationalError, m: print m[0] I instead used the MySQLdb.Error import as follows to give comprehensive error messages. try: db = MySQLdb.connect("localhost", "gue...
Hi there, Any help would be much appreciated! I'm working on a project where I'm listening to 8 pins (7,11,12,13,15,16,18,22) for pulses (falling edges on the pins which have been pulled up). Currently I'm using threaded callbacks (see code) to run the following SQL statement which just inserts a ro...