Update tweet_handler.py to throw exception if the terms file is incorrectly formatted.