aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/home/views/home.py
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2020-09-18 03:33:35 +1000
committerGravatar scragly <[email protected]>2020-09-18 03:33:35 +1000
commit357b20145b2784d9334b941fc25bcb8ce7b64c11 (patch)
treeccd446b4841ad69ae22fdc91f4c246823e0f811e /pydis_site/apps/home/views/home.py
parentAdd new test for deleted message context log_url. (diff)
parentMerge pull request #390 from python-discord/allow_blank_or_null_for_nominatio... (diff)
Merge branch 'master' into admin-api-pages-improvements
# Conflicts: # pydis_site/apps/api/admin.py
Diffstat (limited to 'pydis_site/apps/home/views/home.py')
-rw-r--r--pydis_site/apps/home/views/home.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/home/views/home.py b/pydis_site/apps/home/views/home.py
index 4cf22594..3b5cd5ac 100644
--- a/pydis_site/apps/home/views/home.py
+++ b/pydis_site/apps/home/views/home.py
@@ -23,8 +23,8 @@ class HomeView(View):
"python-discord/bot",
"python-discord/snekbox",
"python-discord/seasonalbot",
+ "python-discord/metricity",
"python-discord/django-simple-bulma",
- "python-discord/django-crispy-bulma",
]
def _get_api_data(self) -> Dict[str, Dict[str, str]]:
@@ -61,7 +61,7 @@ class HomeView(View):
# Try to get new data from the API. If it fails, return the cached data.
try:
api_repositories = self._get_api_data()
- except TypeError:
+ except (TypeError, ConnectionError):
return RepositoryMetadata.objects.all()
database_repositories = []