Corrected account_update_credentials() call

This commit is contained in:
JCF 2023-06-18 21:40:21 +02:00
parent a8a580989a
commit 36738c7a65

View File

@ -262,7 +262,7 @@ 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="", header_mime_type=None)
mastodon.account_update_credentials(avatar=new_avatar_img, avatar_mime_type=new_avatar_mime, header=new_banner_img, header_mime_type=new_banner_mime)
except Exception as e:
logging.error("Could not update profile")
logging.error(e)