Merge pull request #25 from datakurre/master
Fix migration to not fail when member has been deleted
This commit is contained in:
commit
aa61364342
@ -108,7 +108,10 @@ class View(BrowserView):
|
|||||||
|
|
||||||
if not comment.author_name:
|
if not comment.author_name:
|
||||||
# In migrated site member.fullname ='' while member.getProperty('fullname') has the correct value
|
# In migrated site member.fullname ='' while member.getProperty('fullname') has the correct value
|
||||||
|
if member:
|
||||||
comment.author_name = member.getProperty('fullname')
|
comment.author_name = member.getProperty('fullname')
|
||||||
|
else:
|
||||||
|
comment.author_name = comment.author_username
|
||||||
|
|
||||||
try:
|
try:
|
||||||
comment.author_email = reply.email
|
comment.author_email = reply.email
|
||||||
|
Loading…
Reference in New Issue
Block a user