aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jchristgit <[email protected]>2023-08-06 11:38:36 +0200
committerGravatar GitHub <[email protected]>2023-08-06 11:38:36 +0200
commit721cf9b44f00001ae1a701453f6389b1a09c2bd0 (patch)
treecaebf9c4f910cb92a6caf2f3b19e570d9afe3771
parentMerge pull request #1063 from python-discord/dependabot/pip/django-4.2.4 (diff)
parentMerge branch 'main' into clean-pragma (diff)
Merge pull request #1052 from python-discord/clean-pragma
Clean up pragma intended for Python 3.10 removal
-rw-r--r--pydis_site/apps/content/views/page_category.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pydis_site/apps/content/views/page_category.py b/pydis_site/apps/content/views/page_category.py
index 062c2bc1..1d9a9c39 100644
--- a/pydis_site/apps/content/views/page_category.py
+++ b/pydis_site/apps/content/views/page_category.py
@@ -56,9 +56,7 @@ class PageOrCategoryView(TemplateView):
entry_info["name"] = frontmatter.load(entry).metadata["title"]
elif entry.is_dir():
entry_info["name"] = utils.get_category(entry)["title"]
- else: # pragma: no cover
- # TODO: Remove coverage.py pragma in Python 3.10
- # See: https://github.com/nedbat/coveragepy/issues/198
+ else:
continue
context["subarticles"].append(entry_info)