From 3efaf2dda390ed91cdba771a490b7c81a9d292a2 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 5 Jun 2023 16:01:14 +0200 Subject: [PATCH 1/1] fix --- src/catalogue/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/catalogue/views.py b/src/catalogue/views.py index b52d7b983..e02720010 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -154,7 +154,7 @@ def object_list(request, objects, fragments=None, related_tags=None, tags=None, 'suggest': suggest, 'list_type': list_type, 'tags': tags, - 'main_tag': tags[0], + 'main_tag': tags[0] if tags else None, 'formats_form': forms.DownloadFormatsForm(), 'best': best, -- 2.20.1