aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pydis_site/apps/home/tests/mock_github_api_response.json7
-rw-r--r--pydis_site/apps/home/views/home.py2
2 files changed, 8 insertions, 1 deletions
diff --git a/pydis_site/apps/home/tests/mock_github_api_response.json b/pydis_site/apps/home/tests/mock_github_api_response.json
index ddbffed8..00f2840d 100644
--- a/pydis_site/apps/home/tests/mock_github_api_response.json
+++ b/pydis_site/apps/home/tests/mock_github_api_response.json
@@ -36,6 +36,13 @@
},
{
"full_name": "python-discord/sir-lancebot",
+ "description": 42,
+ "stargazers_count": "bad types",
+ "language": ["not", "the", "right", "type"],
+ "forks_count": "31"
+ },
+ {
+ "full_name": "python-discord/sir-lancebot",
"description": "test",
"stargazers_count": 97,
"language": "Python",
diff --git a/pydis_site/apps/home/views/home.py b/pydis_site/apps/home/views/home.py
index ddbfc4b4..77496121 100644
--- a/pydis_site/apps/home/views/home.py
+++ b/pydis_site/apps/home/views/home.py
@@ -76,7 +76,7 @@ class HomeView(View):
# If we don't, we have to create some!
if not cached_data:
- # Try to get new data from the API. If it fails, return an empty list.
+ # Try to get new data from the API. If it fails, we'll return an empty list.
# In this case, we simply don't display our projects on the site.
api_repositories = self._get_api_data()