Twitter: catch ValueError
This commit is contained in:
parent
678350fe5d
commit
9abdc98487
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue