[x] I have tested my changes against the dev branch (the latest developmental version), and this pull request is targeting that branch as a base
[x] I have tested my changes on Python 3.8 and 3.10 in Windows and Linux
[x] I have ensured my code is formatted using Black & Flake8
Description
This PR extends certifi patching to the discord http client session. This deals with SSLCertVerificationError and ClientConnectorCertificateError by restarting the bot to load certifi certs only when the local trust store is missing them.
Additionally this PR addresses some issues with _cleanup() and run.py to reduce errors and remove outdated code.
dev
branch (the latest developmental version), and this pull request is targeting that branch as a baseDescription
This PR extends certifi patching to the discord http client session. This deals with
SSLCertVerificationError
andClientConnectorCertificateError
by restarting the bot to load certifi certs only when the local trust store is missing them.Additionally this PR addresses some issues with _cleanup() and run.py to reduce errors and remove outdated code.