From 739a71f2f1eda08b4eedd1cb4b43b74656092307 Mon Sep 17 00:00:00 2001 From: emilsvennesson Date: Sun, 6 Oct 2024 00:09:08 +0200 Subject: [PATCH] pylint --- lib/inputstreamhelper/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/inputstreamhelper/utils.py b/lib/inputstreamhelper/utils.py index b9b10813..36f1f89a 100644 --- a/lib/inputstreamhelper/utils.py +++ b/lib/inputstreamhelper/utils.py @@ -104,8 +104,8 @@ def http_get(url): try: decoded_content = content.decode("utf-8") return decoded_content - except UnicodeDecodeError as e: - log(2, 'Failed to decode content. Error: {error}', error=str(e)) + except UnicodeDecodeError as error: + log(2, 'Failed to decode content. Error: {error}', error=str(error)) return None def http_head(url):