Update exception syntax

This commit is contained in:
Matthew Sital-Singh 2013-11-26 09:57:42 +00:00
parent 465315a7f6
commit 37fcb36b8c
1 changed files with 1 additions and 1 deletions

View File

@ -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]