Better logging

This commit is contained in:
Felix Ableitner 2019-11-30 23:20:33 +01:00
parent 885959d3e1
commit 82e19ebab2

View file

@ -102,6 +102,7 @@ for t in reversed(d.entries[0:5]):
c = c.replace('\xa0',' ')
if toot_media is not None:
print(f'posting via {mastodon}, message {c}')
toot = mastodon_api.status_post(c, in_reply_to_id=None, media_ids=toot_media, sensitive=False, visibility='public', spoiler_text=None)
if "id" in toot:
db.execute("INSERT INTO tweets VALUES ( ? , ? , ? , ? , ? )",