From 68e4918b02804e5d2a782d0e2b17d6ac0742a650 Mon Sep 17 00:00:00 2001 From: jeancf Date: Tue, 22 Nov 2022 11:08:29 +0100 Subject: [PATCH] Added debug message --- twoot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/twoot.py b/twoot.py index cd15e73..43bc435 100755 --- a/twoot.py +++ b/twoot.py @@ -91,6 +91,9 @@ def deredir_url(url): # If anything goes wrong keep the URL intact return url + if ret.url != url: + logging.debug("Removed redirection from: " + url + " to: " + ret.url) + # Return the URL that the page was downloaded from return ret.url