fail gracefully on unicode errors on person migration

This commit is contained in:
Sanjay B 2014-10-18 18:30:10 +05:30
parent c203db7e8a
commit 872fe736b5

View File

@ -12,6 +12,9 @@ def migrate_participants():
else:
person.first_name = names[0]
person.about = p.short_bio
try:
person.save()
print "saved %s %s" % (person.first_name, person.last_name,)
#print "saved %s %s" % (person.first_name, person.last_name,)
except:
print "FAIL: %s" (p.name,)