- contact_body = submission.contact.body
- submission.school = '%s %s' % (contact_body['institution'], contact_body['institution_address'])
+ if submission.contact:
+ contact_body = submission.contact.body
+ submission.school = '%s %s' % (contact_body.get('school'), contact_body.get('school_address'))