diff options
| author | 2021-03-30 12:47:41 +0300 | |
|---|---|---|
| committer | 2021-03-30 12:47:41 +0300 | |
| commit | 47f1881b86650d2cc9c4d697ce77c84248244e4f (patch) | |
| tree | 389060d3bfeb32c37dc69bca3466bef0b8570485 /pydis_site | |
| parent | Rename ResourcesList -> ResourcesListView (diff) | |
Remove unnecessary exists check from resources path check
Diffstat (limited to 'pydis_site')
| -rw-r--r-- | pydis_site/apps/resources/views/resources_list.py | 3 | 
1 files changed, 1 insertions, 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 | 
