From 9abdc98487a6c96aa4d936faf5676006e6f580cb Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Mon, 27 Jun 2011 20:17:30 -0500 Subject: [PATCH] Twitter: catch ValueError --- modules/Twitter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/Twitter.py b/modules/Twitter.py index b448e6b..cc8f795 100644 --- a/modules/Twitter.py +++ b/modules/Twitter.py @@ -158,6 +158,8 @@ class Twitter(Module): return self._return_tweet_or_retweet_text(tweet=tweet) except twitter.TwitterError as e: return 'Couldn\'t obtain status: ' + str(e) + except ValueError as e: + return 'Couldn\'t obtain status: ' + str(e) def twitter_tweet(self, connection, event, nick, userhost, what, admin_unlocked): """Tweet. Needs authentication."""