You can shorten this to:

```
try:
    self.locale = request.user.get_profile().locale
except Profile.DoesNotExist:
    pass
```