aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Vivaan Verma <[email protected]>2021-08-12 15:20:59 +0100
committerGravatar Vivaan Verma <[email protected]>2021-08-12 15:20:59 +0100
commitf0676fe56000e82036c6b178bd1ea55170c3d789 (patch)
tree183e9e1df363124f0f3a0734439e5f2771ef7a21
parentfeat: 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.
-rw-r--r--pydis_site/apps/api/models/bot/metricity.py2
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