Fix migration to not fail when member has been deleted

This commit is contained in:
Asko Soukka 2013-04-10 10:28:46 +03:00
parent 7f16b55493
commit 4165a74180

View File

@ -108,7 +108,10 @@ class View(BrowserView):
if not comment.author_name:
# In migrated site member.fullname ='' while member.getProperty('fullname') has the correct value
if member:
comment.author_name = member.getProperty('fullname')
else:
comment.author_name = comment.author_username
try:
comment.author_email = reply.email