added exception logging to twitter.py for testing.