From cbe57f7fff761357574e6ed4728f847232af2551 Mon Sep 17 00:00:00 2001 From: Trevor Bergeron Date: Sun, 15 May 2022 20:27:40 -0400 Subject: [PATCH] url: don't vomit unsurprising exceptions into log --- sopel/modules/url.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sopel/modules/url.py b/sopel/modules/url.py index 4825b00166..69a43e71c2 100644 --- a/sopel/modules/url.py +++ b/sopel/modules/url.py @@ -422,8 +422,8 @@ def find_title(url, verify=True): # Need to close the connection because we have not read all # the data response.close() - except requests.exceptions.ConnectionError: - LOGGER.debug('Unable to reach URL: %s', url, exc_info=True) + except requests.exceptions.ConnectionError as e: + LOGGER.debug("Unable to reach URL: %r: %s", url, e) return None except ( requests.exceptions.InvalidURL, # e.g. http:///