Makes it so that we can always save recent activity, as if a later upload fails we don't save that we got to post earlier ones.master
for p in okps: | for p in okps: | ||||
print('posting', p['rid'], '-', p['title']) | print('posting', p['rid'], '-', p['title']) | ||||
make_post(masto, p) | |||||
try: | |||||
make_post(masto, p) | |||||
except Exception as e: | |||||
print('error posting:', p['rid'], str(e)) | |||||
save_recents(newrecents) | save_recents(newrecents) | ||||