
If the roster contained a JID, but not any resource presence data, then an error would occur when accessing self.roster[jid]['presence'].
If the roster contained a JID, but not any resource presence data, then an error would occur when accessing self.roster[jid]['presence'].