diff --git a/later42/templates/archive.html b/later42/templates/archive.html index 36f3461..eff861b 100644 --- a/later42/templates/archive.html +++ b/later42/templates/archive.html @@ -13,7 +13,7 @@
- +
{% if url.content %} diff --git a/later42/templates/index.html b/later42/templates/index.html index 09c2750..2914732 100644 --- a/later42/templates/index.html +++ b/later42/templates/index.html @@ -12,7 +12,7 @@
- +
{% if url.content %} diff --git a/later42/views/api.py b/later42/views/api.py index fe39b49..e533332 100644 --- a/later42/views/api.py +++ b/later42/views/api.py @@ -23,7 +23,7 @@ class URL(APIView): try: response = requests.get(url).json() return response['excerpt'] - except AttributeError: + except KeyError: return None def post(self, request, format=None):