Added unrelated log message

This commit is contained in:
jeancf 2023-06-15 17:49:50 +02:00
parent f233592d75
commit 8a87af2e67

View File

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