fix
authorRadek Czajka <rczajka@rczajka.pl>
Mon, 5 Jun 2023 14:01:14 +0000 (16:01 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Mon, 5 Jun 2023 14:01:14 +0000 (16:01 +0200)
src/catalogue/views.py

index b52d7b9..e027200 100644 (file)
@@ -154,7 +154,7 @@ def object_list(request, objects, fragments=None, related_tags=None, tags=None,
         'suggest': suggest,
         'list_type': list_type,
         'tags': tags,
         '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,
 
         'formats_form': forms.DownloadFormatsForm(),
         'best': best,