diff --git a/djangoldp_profile/models.py b/djangoldp_profile/models.py index 7cba20f51c6850f3a87895c9e8c4289509dba986..37199b83220e191a368e305d059c2fdb3d363909 100644 --- a/djangoldp_profile/models.py +++ b/djangoldp_profile/models.py @@ -15,7 +15,10 @@ class Profile(models.Model): website = models.URLField(blank=True) def jabberID(self): - return self.user.chatProfile.jabberID + try: + return self.user.chatProfile.jabberID + except: + return None class Meta: auto_author = 'user'