From dc09b4b353300289dffbb6e5adc277983fe7f5b7 Mon Sep 17 00:00:00 2001 From: Dmitriy Lyalyuev Date: Tue, 25 Oct 2022 12:37:00 +0300 Subject: [PATCH] style: icons --- later42/templates/archive.html | 2 +- later42/templates/index.html | 2 +- later42/views/api.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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):