diff --git a/goodlist b/goodlist index 1463537..128fc08 100644 --- a/goodlist +++ b/goodlist @@ -1,5 +1,4 @@ kontrolle -ticketfrei konti db zivil @@ -11,7 +10,6 @@ bahn tram linie nuernberg -nbg nürnberg s1 s2 diff --git a/retweetbot.py b/retweetbot.py index 6ce1b17..f0e7ddc 100644 --- a/retweetbot.py +++ b/retweetbot.py @@ -122,12 +122,12 @@ class RetweetBot(object): """ while 1: try: - print self.api.PostRetweet(status.id) + self.api.PostRetweet(status.id) return self.format_mastodon(status) - # Hopefully we got rid of this error. If not, try to uncomment these lines. - # except twitter.error.TwitterError: - # print("[ERROR] probably you already retweeted this tweet.") - # done = True + # maybe one day we get rid of this error. If not, try to uncomment these lines. + except twitter.error.TwitterError: + print("[ERROR] probably you already retweeted this tweet.") + return None except requests.exceptions.ConnectionError: print("[ERROR] Bad Connection.") sleep(10) @@ -169,7 +169,6 @@ class RetweetBot(object): # save the id so it doesn't get crawled again self.last_mention = status.id - print self.last_mention # debug # Return Retweets for tooting on mastodon return mastodon @@ -185,7 +184,7 @@ if __name__ == "__main__": # create an Api object bot = RetweetBot() while True: - sleep(10) bot.flow() + sleep(10) #except: # bot.shutdown() diff --git a/trigger.pyc b/trigger.pyc index 3a79646..301bc27 100644 Binary files a/trigger.pyc and b/trigger.pyc differ