oe4dns / tootgroup.py

Emulate group accounts on Mastodon and Pleroma
GNU General Public License v3.0
17 stars 7 forks source link

Crashes if the group account never tooted anything #4

Closed LongHairedHacker closed 5 years ago

LongHairedHacker commented 6 years ago

my_account["last_toot_time"] is obtained by checking the last toot by the group account.

If the group account never tooted anything at all, mastodon.account_statuses(my_account["id"])[0].created_at will cause an index error at the first run of the tootgroup.py.

oe4dns commented 6 years ago

Thank you, will leave this open... More (much more) Error Handling is already in the TODO list and I will make sure to check for this!

oe4dns commented 5 years ago

The code that was causing this issue has been removed in the meantime. Issue will remain open anyway until it has been thoroughly tested.

oe4dns commented 5 years ago

Fixed in v0.8