Twitter message duplicate exception catched
This commit is contained in:
parent
b61a2b1bb5
commit
0281106771
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue