How to Solve NameError: name 'Error' is not defined -- sqlite3

Solution: Import the 'Error' module

To Solve the error, add the following line to the top of your code.

from sqlite3 import Error

 

For more information:
Python sqlite3 Error