Permalink
Browse files

Fixed #963

  • Loading branch information...
1 parent f7757f4 commit 2a462318922f645e80727558485d114a95b3fd99 Jonas Obrist committed Aug 25, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 cms/templatetags/cms_tags.py
@@ -338,7 +338,12 @@ def _show_placeholder_for_page(context, placeholder_name, page_lookup, lang=None
page = _get_page_by_untyped_arg(page_lookup, request, site_id)
if not page:
return {'content': ''}
- placeholder = page.placeholders.get(slot=placeholder_name)
+ try:
+ placeholder = page.placeholders.get(slot=placeholder_name)
+ except Placeholder.DoesNotExist:
+ if settings.DEBUG:
+ raise
+ return {'content': ''}
baseqs = get_cmsplugin_queryset(request)
plugins = baseqs.filter(
placeholder=placeholder,

0 comments on commit 2a46231

Please sign in to comment.