Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
Bugfix for IndexError: list index out of range, because of wrong synt…
Browse files Browse the repository at this point in the history
…ax :(
  • Loading branch information
jedie committed Apr 24, 2012
1 parent db3cb1a commit d3527a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylucid_project/pylucid_plugins/blog/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def permalink_view(request, id, slug=None):
prefiltered_queryset = prefiltered_queryset.filter(entry__id__exact=id)
try:
entry = prefiltered_queryset.filter(language__in=preferred_languages)[0]
except BlogEntry.DoesNotExist, IndexError:
except (BlogEntry.DoesNotExist, IndexError):
# wrong permalink -> display summary
msg = "Blog entry doesn't exist."
if settings.DEBUG or request.user.is_staff:
Expand Down

0 comments on commit d3527a0

Please sign in to comment.