check for principal is None - may happen when zope.authentication is patched

This commit is contained in:
Helmut Merz 2012-03-12 08:14:44 +01:00
parent d496dc001a
commit 942de85d87

View file

@ -269,6 +269,9 @@ class BaseView(GenericView, I18NView):
for c in cr:
try:
principal = pau.getPrincipal(c)
if principal is None:
creators.append(c)
else:
creators.append(principal.title)
except PrincipalLookupError:
creators.append(c)