aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Thomas Petersson <[email protected]>2020-10-05 18:11:34 +0200
committerGravatar Thomas Petersson <[email protected]>2020-10-05 18:11:34 +0200
commit776825d09530be6b57759201795c436823002007 (patch)
tree4efa7e67dd9236f195f08b6dc6fc9999d5bc04e5 /tests
parentMerge pull request #1211 from python-discord/Den4200/fix/rules (diff)
fix(statsd): Gracefully handle gaierro
Per issue #1185 the bot might go down if the statsd client fails to connect during instantiation. This can be caused by an outage on their part, or network issues. If this happens getaddrinfo will raise a gaierror. This PR catched the error, sets self.stats to None for the time being, and handles that elsewhere. In addition a fallback logic was added to attempt to reconnect, in the off-chance it's a temporary outage
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions