Merge pull request #25 from datakurre/master

Fix migration to not fail when member has been deleted
This commit is contained in:
Timo Stollenwerk 2013-04-17 05:52:17 -07:00
commit aa61364342
1 changed files with 4 additions and 1 deletions

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
comment.author_name = member.getProperty('fullname')
if member:
comment.author_name = member.getProperty('fullname')
else:
comment.author_name = comment.author_username
try:
comment.author_email = reply.email