Error handling in Python-MySQL
First point: you have too much code in your try/except block. Better to use distinct try/except blocks when you have two statements (or two groups of statements) that may raise different errors: Now do you really have to catch a TypeError here ? If you read at the traceback, you’ll notice that your error comes … Read more