Correct error message

This commit is contained in:
JCF 2023-10-01 22:44:47 +02:00
parent 25499cb7ca
commit c52406aeeb

View File

@ -1001,7 +1001,7 @@ def update_profile(nitter_url, soup, sql, mast_password):
new_banner_mime = new_banner.headers['content-type'] if new_banner.status_code == 200 else None
if new_banner.status_code != 200:
logging.error("Could not download banner image from " + nitter_url + new_banner_url)
logging.error("Status code: " + str(new_avatar.status_code))
logging.error("Status code: " + str(new_banner.status_code))
else:
logging.debug("Banner image downloaded")