How to Solve NameError: name 'ProgrammingError' is not defined -- snowflake

Solution: Import the 'ProgrammingError' module

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

from snowflake import ProgrammingError

 

For more information:
Python snowflake ProgrammingError