From 37fcb36b8c10bce3a45b944b001ec0c4552d753b Mon Sep 17 00:00:00 2001 From: Matthew Sital-Singh Date: Tue, 26 Nov 2013 09:57:42 +0000 Subject: [PATCH] Update exception syntax --- src/plone/api/content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plone/api/content.py b/src/plone/api/content.py index 12f5600..221b37f 100644 --- a/src/plone/api/content.py +++ b/src/plone/api/content.py @@ -69,7 +69,7 @@ def create( # UnicodeDecodeError is a subclass of ValueError, # so will be swallowed below unless we re-raise it here raise - except ValueError, e: + except ValueError as e: if ISiteRoot.providedBy(container): allowed_types = container.allowedContentTypes() types = [allowed_type.id for allowed_type in allowed_types]