Catches an AttributeError.

[Django's ValidationError apparently is weird: see this
https://groups.google.com/forum/?fromgroups#!topic/django-users/QyjdEP2_s6w]