check for principal is None - may happen when zope.authentication is patched
This commit is contained in:
parent
d496dc001a
commit
942de85d87
1 changed files with 4 additions and 1 deletions
|
@ -269,7 +269,10 @@ class BaseView(GenericView, I18NView):
|
||||||
for c in cr:
|
for c in cr:
|
||||||
try:
|
try:
|
||||||
principal = pau.getPrincipal(c)
|
principal = pau.getPrincipal(c)
|
||||||
creators.append(principal.title)
|
if principal is None:
|
||||||
|
creators.append(c)
|
||||||
|
else:
|
||||||
|
creators.append(principal.title)
|
||||||
except PrincipalLookupError:
|
except PrincipalLookupError:
|
||||||
creators.append(c)
|
creators.append(c)
|
||||||
return creators
|
return creators
|
||||||
|
|
Loading…
Add table
Reference in a new issue