How to Solve NameError: name 'TwythonError' is not defined -- twython

Solution: Import the 'TwythonError' module

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

from twython import TwythonError

 

For more information:
Python twython TwythonError