From: Radek Czajka Date: Mon, 5 Jun 2023 14:01:14 +0000 (+0200) Subject: fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/3efaf2dda390ed91cdba771a490b7c81a9d292a2?hp=a79b274856788fd355c87980186d76ff5a7f9cd6 fix --- 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,