Minor cosmetic cleanup of model references following the models module restructuring.
[philo.git] / admin.py
index ce79635..9e991d9 100644 (file)
--- a/admin.py
+++ b/admin.py
@@ -251,9 +251,9 @@ class PageAdmin(NodeAdmin):
                                content = form.cleaned_data[('contentreference_container_%s' % container_name)]
                                try:
                                        contentreference = page.contentreferences.get(name=container_name)
                                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)
                                        contentreference = ContentReference(name=container_name, page=page, content_type=container_content_type)
-                                       
+                               
                                if content == None:
                                        contentreference.content_id = None
                                else:
                                if content == None:
                                        contentreference.content_id = None
                                else: