Skip to content
Browse files

Bugfix for IndexError: list index out of range, because of wrong synt…

…ax :(
  • Loading branch information...
1 parent db3cb1a commit d3527a0b8b55bd402fa1fb59ad54e038531d9289 @jedie committed Apr 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pylucid_project/pylucid_plugins/blog/views.py
View
2 pylucid_project/pylucid_plugins/blog/views.py
@@ -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:

0 comments on commit d3527a0

Please sign in to comment.
Something went wrong with that request. Please try again.