From 8a87af2e674631c1db7af1966603362282952f14 Mon Sep 17 00:00:00 2001 From: jeancf Date: Thu, 15 Jun 2023 17:49:50 +0200 Subject: [PATCH] Added unrelated log message --- twoot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/twoot.py b/twoot.py index 40b5420..b183ba9 100755 --- a/twoot.py +++ b/twoot.py @@ -267,7 +267,7 @@ def update_profile(nitter_url, soup, sql, mast_password): # Add urls to database db.execute("UPDATE profiles SET avatar_url=?, banner_url=? WHERE mastodon_instance=? AND mastodon_account=?", (new_avatar_url, new_banner_url, TOML['config']['mastodon_instance'], TOML['config']['mastodon_user'])) sql.commit() - logging.debug("updated profile on database") + logging.debug("Profile updated on database") else: logging.debug("No changes to profile found") @@ -1108,6 +1108,8 @@ def main(argv): except MastodonError as me: logging.error('posting ' + tweet['tweet_text'] + ' to ' + TOML['config']['mastodon_instance'] + ' Failed') logging.error(me) + else: + logging.warning("Retry successful") except MastodonError as me: logging.error('posting ' + tweet['tweet_text'] + ' to ' + TOML['config']['mastodon_instance'] + ' Failed')