AmauryCarrade / MastodonToTwitter

Mastodon <-> Twitter cross-poster.
MIT License
250 stars 41 forks source link

Traceback: Key error: 'rel' #50

Closed bplein closed 6 years ago

bplein commented 7 years ago

Launching MastodonToTwitter.py (or running it as a service), I get:

# ./MastodonToTwitter.py Tweeting any toots after toot 12387 Tooting any tweets after tweet 877224399400730624 Updated expected short URL length: Is now 24 Traceback (most recent call last): File "./MastodonToTwitter.py", line 246, in <module> new_toots = mastodon_api.account_statuses(ma_account_id, since_id = since_toot_id) File "/home/bill/.local/lib/python3.5/site-packages/mastodon/Mastodon.py", line 364, in account_statuses return self.__api_request('GET', '/api/v1/accounts/' + str(id) + '/statuses', params) File "/home/bill/.local/lib/python3.5/site-packages/mastodon/Mastodon.py", line 963, in __api_request if url['rel'] == 'next': KeyError: 'rel'

bplein commented 7 years ago

Using Mastodon 1.4.3

hazelybell commented 7 years ago

Posting me too like some brain-dead AOLer

hazelybell commented 7 years ago

Problem is Mastodon.py 1.0.8 workaround: pip uninstall Mastodon.py ; pip install Mastodon.py==1.0.7