Commit Graph

12 Commits

Author SHA1 Message Date
Mark Eaton 2f1a34852e add notification when rate limit reached 2019-05-13 14:33:33 -04:00
Hugh Rundle 6b26940ee9 reformat for nicer code using black 2019-05-12 15:40:15 +10:00
Hugh Rundle 9844486601 Amend rate-limit code and add more exception checking
The commit explicitly sets ratelimit_method to "wait" when initiating Mastodon (though this is the default anyway).
This setting allows mastodon.py to handle rate limits for us instead of having to put logic in ephemetoot to deal with it.

Also added some exception/error checking within the toot checking loop, allowing a second attempt for Mastodon API errors, adding a break after a KeyboardInterupt (Ctrl + C), and printing the errors in some cases to help with debugging.

Finally, there is now a 2 second delay between delete calls, just to be a bit nicer to the endpoint server.
2019-05-12 15:34:15 +10:00
Hugh Rundle bb1f7ffecf fix #7 - comply with API rate limit 2019-05-10 07:58:59 +10:00
Hugh Rundle 357455126c update copyright and README 2019-03-08 16:16:00 +11:00
Mark Eaton 1ef97cfc12 test-run works for reblogs too 2019-03-05 19:08:52 -05:00
Mark Eaton a3b9fa6b56 add the ability to do a test run 2019-02-13 23:22:35 -05:00
Mark Eaton 6082441e9e run black on ephemetoot.py 2019-02-13 16:59:57 -05:00
Mark Eaton bc054a6918 add some standard python boilerplate 2019-01-10 10:59:51 -05:00
Mark Eaton 92643271d5 handle IndexError when there are no toots in the timeline 2019-01-10 10:57:43 -05:00
Hugh Rundle 8004ce3b0c improved description in README and fixed typos 2018-12-25 08:27:19 +11:00
Hugh Rundle 483abc9041 first commit 2018-12-24 15:30:56 +11:00