Just-Some-Bots / MusicBot

:musical_note: The original MusicBot for Discord (formerly SexualRhinoceros/MusicBot)
https://just-some-bots.github.io/MusicBot/
MIT License
3.09k stars 2.35k forks source link

Update flake8 config and run Flake8 over the whole project. #2379

Closed itsTheFae closed 6 months ago

itsTheFae commented 6 months ago

Description

This PR updates some flake8 configs and brings the source into compliance with flake8. Primarily addresses the various bare except statements that could be catching system interrupt signals.
Some effort was made to use more specific Exceptions where they could be used. However, some except statements may still be too broad, catching and eating asyncio.exceptions.CancelledError where they maybe should not be ignored.

Also changes skip command permission checks for looped songs, since clean up made it throw command permissions error.