diff options
author | 2021-08-12 15:20:59 +0100 | |
---|---|---|
committer | 2021-08-12 15:20:59 +0100 | |
commit | f0676fe56000e82036c6b178bd1ea55170c3d789 (patch) | |
tree | 183e9e1df363124f0f3a0734439e5f2771ef7a21 /pydis_site/apps/api/models | |
parent | feat: Add a source button to the resource boxes (diff) |
lint: Add a NOQA for the N818 linting error
This newly added rule enforces exception names to end with Error or Exception, causing the code to not pass linting.
I preferred ignoring this error instead of fixing it to keep the style consistent with rest_framework.NotFound.
Diffstat (limited to 'pydis_site/apps/api/models')
-rw-r--r-- | pydis_site/apps/api/models/bot/metricity.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/api/models/bot/metricity.py b/pydis_site/apps/api/models/bot/metricity.py index 5daa5c66..00076248 100644 --- a/pydis_site/apps/api/models/bot/metricity.py +++ b/pydis_site/apps/api/models/bot/metricity.py @@ -10,7 +10,7 @@ EXCLUDE_CHANNELS = [ ] -class NotFound(Exception): +class NotFound(Exception): # noqa: N818 """Raised when an entity cannot be found.""" pass |