diff --git a/bot.py b/bot.py index f9fcd07..13e51a6 100644 --- a/bot.py +++ b/bot.py @@ -49,7 +49,7 @@ def tweet(text): try: api.update_status(text) except tweepy.error.TweepError as e: - log(e.message) + log(str(e)) else: log("Tweeted: " + text) @@ -64,4 +64,4 @@ def log(message): if __name__ == "__main__": tweet_text = create_tweet() - tweet(tweet_text) \ No newline at end of file + tweet(tweet_text)