Skip to content

Commit

Permalink
url: don't vomit unsurprising exceptions into log
Browse files Browse the repository at this point in the history
  • Loading branch information
half-duplex committed May 16, 2022
1 parent 768cae6 commit cbe57f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sopel/modules/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:///
Expand Down

0 comments on commit cbe57f7

Please sign in to comment.