From 192d96b128b52a993083f3ed3bb4b48ff5da8d99 Mon Sep 17 00:00:00 2001 From: jeancf Date: Thu, 14 Sep 2023 12:48:40 +0200 Subject: [PATCH] str() --- twoot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twoot.py b/twoot.py index a5d8d40..5916a87 100755 --- a/twoot.py +++ b/twoot.py @@ -388,7 +388,7 @@ def update_profile(nitter_url, soup, sql, mast_password): new_avatar_mime = new_avatar.headers['content-type'] if new_avatar.status_code == 200 else None if new_avatar.status_code != 200: logging.error("Could not download avatar image from " + nitter_url + new_avatar_url) - logging.error("Status code: " + new_avatar.status_code) + logging.error("Status code: " + str(new_avatar.status_code)) else: logging.debug("Avatar image downloaded") @@ -398,7 +398,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: " + new_avatar.status_code) + logging.error("Status code: " + str(new_avatar.status_code)) else: logging.debug("Banner image downloaded")