Skip to content

Commit

Permalink
Merge pull request #2280 from half-duplex/url-bad-cert
Browse files Browse the repository at this point in the history
url: remove traceback from debug log when fetching URL fails
  • Loading branch information
dgw authored May 19, 2022
2 parents a592330 + cbe57f7 commit c560c6d
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 c560c6d

Please sign in to comment.