Twitter message duplicate exception catched

This commit is contained in:
Felipe Martín 2015-07-06 10:20:04 +02:00
parent b61a2b1bb5
commit 0281106771
1 changed files with 4 additions and 1 deletions

View File

@ -17,4 +17,7 @@ class TwitterService(object):
self.api = tweepy.API(self.auth)
def send(self, message):
self.api.update_status(status=message)
try:
self.api.update_status(status=message)
except tweepy.error.TweepError:
pass