X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/8c48dda3b4c5cf0ac6c2d404ae29d8ef315b4f7f..d8c7acf5c1153bb75c51b632ee6bf2d913448a3a:/admin.py?ds=sidebyside diff --git a/admin.py b/admin.py index ce79635..5685f14 100644 --- a/admin.py +++ b/admin.py @@ -251,7 +251,7 @@ class PageAdmin(NodeAdmin): content = form.cleaned_data[('contentreference_container_%s' % container_name)] try: contentreference = page.contentreferences.get(name=container_name) - except: + except ContentReference.DoesNotExist: contentreference = ContentReference(name=container_name, page=page, content_type=container_content_type) if content == None: