X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/36f395364e4467720c550c829d1bfec2e9da5d5f..d8c7acf5c1153bb75c51b632ee6bf2d913448a3a:/admin.py 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: