Update exception syntax
This commit is contained in:
parent
465315a7f6
commit
37fcb36b8c
|
@ -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]
|
||||
|
|
Reference in New Issue