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')