aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/home/views/home.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-07-14 13:08:41 -0700
committerGravatar MarkKoz <[email protected]>2020-07-14 13:08:41 -0700
commit2a5bd3242582a9767d70e18e97fc643b9b6c30ec (patch)
treecfc8c37fa2a59046f91305c86eca9e977dd1ef29 /pydis_site/apps/home/views/home.py
parentAllow empty list for message embeds (diff)
parentCatch ConnectionError when trying to get updated repository data (diff)
Merge branch 'master' into feat/deps/344/django-3.0
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..20e38ab0 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/flake8-annotations",
"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 = []