From cc0935297fc4792a9d61f653bff023bec69c53c0 Mon Sep 17 00:00:00 2001 From: JCF Date: Thu, 15 Jun 2023 20:34:57 +0200 Subject: [PATCH] Added info message to log --- twoot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/twoot.py b/twoot.py index 4c0e261..ca95e8b 100755 --- a/twoot.py +++ b/twoot.py @@ -262,12 +262,11 @@ def update_profile(nitter_url, soup, sql, mast_password): # Update profile on Mastodon try: mastodon.account_update_credentials(avatar=new_avatar_img, avatar_mime_type=new_avatar_mime, header=new_banner_img, header_mime_type=new_banner_mime) - logging.debug("Images uploaded") except Exception as e: logging.error("Could not update profile") logging.error(e) else: - logging.debug("Profile updated on Mastodon") + logging.info("Profile updated on Mastodon") # 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()