From 47f1881b86650d2cc9c4d697ce77c84248244e4f Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Tue, 30 Mar 2021 12:47:41 +0300 Subject: Remove unnecessary exists check from resources path check --- pydis_site/apps/resources/views/resources_list.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pydis_site/apps/resources/views/resources_list.py b/pydis_site/apps/resources/views/resources_list.py index 947dae29..bcb7ea67 100644 --- a/pydis_site/apps/resources/views/resources_list.py +++ b/pydis_site/apps/resources/views/resources_list.py @@ -20,8 +20,7 @@ class ResourcesListView(TemplateView): resource_path = RESOURCES_PATH / self.kwargs["type"] if ( - not resource_path.exists() - or not resource_path.is_dir() + not resource_path.is_dir() or not resource_path.joinpath("_category_info.yaml").exists() ): raise Http404 -- cgit v1.2.3