From d8c7acf5c1153bb75c51b632ee6bf2d913448a3a Mon Sep 17 00:00:00 2001 From: melinath Date: Fri, 18 Jun 2010 15:02:55 -0400 Subject: [PATCH] Explicated DoesNotExist exception for PageAdmin save_model method. --- admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.20.1