diff --git a/blink/contacts.py b/blink/contacts.py index 69765d006b526328a340bfcc2bdc1875abe91c29..0aa4ed6229cc19f92f1bf3e8bf21f29ef50fe3a0 100644 --- a/blink/contacts.py +++ b/blink/contacts.py @@ -866,11 +866,11 @@ class Contact(object): @property def state(self): - return self.settings.presence.state + return self.settings.presence.state if isinstance(self.settings, addressbook.Contact) else None @property def note(self): - return self.settings.presence.note + return self.settings.presence.note if isinstance(self.settings, addressbook.Contact) else None @property def icon(self): @@ -992,11 +992,11 @@ class ContactDetail(object): @property def state(self): - return self.settings.presence.state + return self.settings.presence.state if isinstance(self.settings, addressbook.Contact) else None @property def note(self): - return self.settings.presence.note + return self.settings.presence.note if isinstance(self.settings, addressbook.Contact) else None @property def icon(self):