Print if anything is going to be posted or not
This commit is contained in:
parent
943af2f10b
commit
ae9015a92f
1 changed files with 3 additions and 0 deletions
|
@ -129,6 +129,7 @@ with Session(engine) as session:
|
|||
.strip()
|
||||
)
|
||||
if not article_record.post_id:
|
||||
print("Posting to Mastodon")
|
||||
mastodon_post_result = mastodon.status_post(
|
||||
status=article_description
|
||||
+ "\n"
|
||||
|
@ -138,6 +139,8 @@ with Session(engine) as session:
|
|||
visibility="public",
|
||||
)
|
||||
article_record.post_id = mastodon_post_result["id"]
|
||||
else:
|
||||
print("Article has already been posted")
|
||||
except:
|
||||
print("Could not load a description/post this article")
|
||||
|
||||
|
|
Loading…
Reference in a new issue